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