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}))); }
public void setValueLabelVisibility(boolean visible) { valueLabel.setVisible(visible); }
public void setShowLabel(boolean show) { name.setVisible(show); }
public void setEditable(boolean isEditable) { label.setVisible(isEditable); }