1 19 20 21 package org.netbeans.core.windows.view; 22 23 24 import java.awt.*; 25 26 27 33 public abstract class ViewElement { 34 35 private final Controller controller; 36 37 private final double resizeWeight; 38 39 40 public ViewElement(Controller controller, double resizeWeight) { 41 this.controller = controller; 42 this.resizeWeight = resizeWeight; 43 } 44 45 46 public final Controller getController() { 47 return controller; 48 } 49 50 public abstract Component getComponent(); 51 52 public final double getResizeWeight() { 53 return resizeWeight; 54 } 55 56 60 public abstract boolean updateAWTHierarchy(Dimension availableSpace); 61 62 63 } 64 65 | Popular Tags |