/** Lays out the component. */ @Override protected Component doLayout() { String name = getProperty().getDisplayName(); String label = Messages.format("relationship.hide.inactive", name); hideInactive = CheckBoxFactory.create(null, true); hideInactive.setText(label); hideInactive.addActionListener( new ActionListener() { public void onAction(ActionEvent event) { onHideInactiveChanged(); } }); Component component = super.doLayout(); component.add(hideInactive, 0); return component; }
/** * Determines if inactive objects should be hidden. * * @return <code>true</code> if inactive objects should be hidden */ protected boolean hideInactive() { return hideInactive.isSelected(); }