Example #1
0
  public ComboBox() {
    super();
    setOpaque(true);
    setLayoutManager(new BorderLayout());
    setBackgroundColor(VisualEditorPlugin.getDefault().getColorManager().getAirColor());

    label = new Label();
    label.setBackgroundColor(ColorConstants.white);
    label.setVisible(false);
    add(label, BorderLayout.CENTER);
    label.setText("         ");

    button = new ArrowButton(Orientable.SOUTH);
    button.setBorder(null);
    button.setOpaque(false);
    button.setEnabled(false);
    button.setPreferredSize(15, 13);
    add(button, BorderLayout.RIGHT);

    setBorder(
        new SchemeBorder(
            new ButtonScheme(
                new Color[] {buttonLightest}, new Color[] {buttonDarkest, buttonDarker})));
  }
Example #2
0
 public void setValueLabelVisibility(boolean visible) {
   valueLabel.setVisible(visible);
 }
Example #3
0
 public void setShowLabel(boolean show) {
   name.setVisible(show);
 }
Example #4
0
 public void setEditable(boolean isEditable) {
   label.setVisible(isEditable);
 }