public class BasePropertiesPanelHelper extends Object implements BasePropertiesPanel
| Modifier and Type | Field and Description |
|---|---|
protected JComponent |
accept |
protected boolean |
canceled |
protected JComponent |
component |
protected ActionListenerSupport |
listeners |
ACTION_ACCEPT, ACTION_CANCEL, ACTION_CLOSE| Constructor and Description |
|---|
BasePropertiesPanelHelper(JComponent component,
JComponent accept) |
| Modifier and Type | Method and Description |
|---|---|
void |
addActionListener(ActionListener listener) |
JComponent |
asJComponent()
Returns this component as a swing
JComponent. |
void |
clear() |
void |
closeWindow() |
void |
fireAcceptEvent() |
void |
fireActionEvent(ActionEvent actionEvent) |
void |
fireCancelEvent() |
void |
fireCloseEvent() |
boolean |
getVisibleAceptCancel() |
boolean |
isCanceled() |
void |
removeActionListener(ActionListener listener) |
void |
removeAllActionListener() |
void |
setCanceled(boolean canceled) |
void |
setVisibleAceptCancel(boolean visible) |
void |
showWindow(String title,
WindowManager.MODE mode) |
protected final JComponent component
protected final JComponent accept
protected boolean canceled
protected ActionListenerSupport listeners
public BasePropertiesPanelHelper(JComponent component, JComponent accept)
public void closeWindow()
closeWindow in interface BasePropertiesPanelpublic void showWindow(String title, WindowManager.MODE mode)
showWindow in interface BasePropertiesPanelpublic boolean isCanceled()
isCanceled in interface BasePropertiesPanelpublic void addActionListener(ActionListener listener)
addActionListener in interface BasePropertiesPanelpublic void removeActionListener(ActionListener listener)
removeActionListener in interface BasePropertiesPanelpublic void removeAllActionListener()
removeAllActionListener in interface BasePropertiesPanelpublic void fireActionEvent(ActionEvent actionEvent)
public void fireAcceptEvent()
public void fireCancelEvent()
public void fireCloseEvent()
public void setVisibleAceptCancel(boolean visible)
setVisibleAceptCancel in interface BasePropertiesPanelpublic boolean getVisibleAceptCancel()
getVisibleAceptCancel in interface BasePropertiesPanelpublic void clear()
clear in interface BasePropertiesPanelpublic JComponent asJComponent()
ComponentJComponent.asJComponent in interface ComponentJComponentpublic void setCanceled(boolean canceled)