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 BasePropertiesPanel
public void showWindow(String title, WindowManager.MODE mode)
showWindow
in interface BasePropertiesPanel
public boolean isCanceled()
isCanceled
in interface BasePropertiesPanel
public void addActionListener(ActionListener listener)
addActionListener
in interface BasePropertiesPanel
public void removeActionListener(ActionListener listener)
removeActionListener
in interface BasePropertiesPanel
public void removeAllActionListener()
removeAllActionListener
in interface BasePropertiesPanel
public void fireActionEvent(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 JComponent asJComponent()
Component
JComponent
.asJComponent
in interface Component
JComponent
public void setCanceled(boolean canceled)