예제 #1
0
 public final JComponent getSwingComponent() {
   if (EventQueue.isDispatchThread()) {
     if (component == null) {
       component = createSwingComponent();
       label = new LabelBinding(component);
       label.addPropertyChangeListener(new LabelListener());
       registerControl("label", StringProperty.create(label, ""));
       initControls();
       layout = new LayoutBinding(component);
       registerControl("layout", StringProperty.create(layout, ""));
       updateLabel();
     }
     return component;
   } else {
     return null;
   }
 }
예제 #2
0
 protected boolean isLabelOnParent() {
   return label.isLabelOnParent();
 }
예제 #3
0
 protected String getLabel() {
   return label.getBoundValue();
 }