net.sourceforge.fixagora.basis.client.view.editor
Class AbstractBusinessObjectEditor

java.lang.Object
  extended by bibliothek.gui.dock.dockable.AbstractDockable
      extended by bibliothek.gui.dock.DefaultDockable
          extended by net.sourceforge.fixagora.basis.client.view.editor.AbstractBusinessObjectEditor
All Implemented Interfaces:
bibliothek.gui.dock.DockElement, bibliothek.gui.dock.DockElementRepresentative, bibliothek.gui.dock.station.support.PlaceholderListItem<bibliothek.gui.Dockable>, bibliothek.gui.Dockable
Direct Known Subclasses:
BankCalendarEditor, BuySideBookEditor, BuySideQuotePageEditor, CounterpartyEditor, DefaultBusinessGroupEditor, ExcelTradeCaptureEditor, FIXAcceptorEditor, FIXInitiatorEditor, FRoleEditor, FSecurityEditor, FSecurityGroupEditor, FUserEditor, SAPTradeCaptureEditor, SellSideBookEditor, SellSideQuotePageEditor, SpreadSheetEditor, TradeCaptureEditor, TraderEditor

public abstract class AbstractBusinessObjectEditor
extends bibliothek.gui.dock.DefaultDockable

The Class AbstractBusinessObjectEditor.


Constructor Summary
AbstractBusinessObjectEditor(AbstractBusinessObject abstractBusinessObject, MainPanel mainPanel, BasisClientConnector basisClientConnector)
          Instantiates a new abstract business object editor.
 
Method Summary
abstract  void checkDirty()
          Check dirty.
 void checkName(java.lang.String name)
          Check name.
 void closeAbstractBusinessObjectEditor()
          Close abstract business object editor.
abstract  AbstractBusinessObject getAbstractBusinessObject()
          Gets the abstract business object.
 BasisClientConnector getBasisClientConnector()
          Gets the basis client connector.
 javax.swing.ImageIcon getBugIcon()
          Gets the bug icon.
 MainPanel getMainPanel()
          Gets the main panel.
 javax.swing.JLabel getNameWarningLabel()
          Gets the name warning label.
 java.lang.String getSelectedTab()
          Gets the selected tab.
 javax.swing.ImageIcon getWarningIcon()
          Gets the warning icon.
 void handleFocus()
          Handle focus.
abstract  void initContent()
          Inits the content.
 boolean isConsistent()
          Checks if is consistent.
 boolean isDirty()
          Checks if is dirty.
 boolean isEditable()
          Checks if is editable.
 boolean isVisible()
          Checks if is visible.
 void postConstruct()
          Post construct.
 void save()
          Save.
 void updateContent(AbstractBusinessObject abstractBusinessObject)
          Update content.
abstract  void updateRoles(java.util.List<FRole> roles)
          Update roles.
 
Methods inherited from class bibliothek.gui.dock.DefaultDockable
add, add, asDockStation, getComponent, getContentPane, getFactoryID, remove, setController, setFactoryID, setLayout
 
Methods inherited from class bibliothek.gui.dock.dockable.AbstractDockable
accept, accept, addDockableListener, addDockableStateListener, addDockHierarchyListener, addKeyListener, addMouseInputListener, asDockable, bind, configureDisplayerHints, getController, getDockParent, getElement, getGlobalActionOffers, getLocalActionOffers, getPopupLocation, getTitleIcon, getTitleText, getTitleToolTip, isDockableVisible, isUsedAsTitle, listBoundTitles, removeDockableListener, removeDockableStateListener, removeDockHierarchyListener, removeKeyListener, removeMouseInputListener, requestDockTitle, resetTitleIcon, setActionOffers, setDockParent, setTitleIcon, setTitleText, setTitleToolTip, shouldFocus, shouldTransfersFocus, unbind
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractBusinessObjectEditor

public AbstractBusinessObjectEditor(AbstractBusinessObject abstractBusinessObject,
                                    MainPanel mainPanel,
                                    BasisClientConnector basisClientConnector)
Instantiates a new abstract business object editor.

Parameters:
abstractBusinessObject - the abstract business object
mainPanel - the main panel
basisClientConnector - the basis client connector
Method Detail

handleFocus

public void handleFocus()
Handle focus.


getNameWarningLabel

public javax.swing.JLabel getNameWarningLabel()
Gets the name warning label.

Returns:
the name warning label

isDirty

public boolean isDirty()
Checks if is dirty.

Returns:
true, if is dirty

isConsistent

public boolean isConsistent()
Checks if is consistent.

Returns:
true, if is consistent

initContent

public abstract void initContent()
Inits the content.


save

public void save()
Save.


getWarningIcon

public javax.swing.ImageIcon getWarningIcon()
Gets the warning icon.

Returns:
the warning icon

getBugIcon

public javax.swing.ImageIcon getBugIcon()
Gets the bug icon.

Returns:
the bug icon

checkName

public void checkName(java.lang.String name)
Check name.

Parameters:
name - the name

closeAbstractBusinessObjectEditor

public void closeAbstractBusinessObjectEditor()
Close abstract business object editor.


getBasisClientConnector

public BasisClientConnector getBasisClientConnector()
Gets the basis client connector.

Returns:
the basis client connector

isEditable

public boolean isEditable()
Checks if is editable.

Returns:
true, if is editable

getMainPanel

public MainPanel getMainPanel()
Gets the main panel.

Returns:
the main panel

getSelectedTab

public java.lang.String getSelectedTab()
Gets the selected tab.

Returns:
the selected tab

postConstruct

public void postConstruct()
Post construct.


updateRoles

public abstract void updateRoles(java.util.List<FRole> roles)
Update roles.

Parameters:
roles - the roles

updateContent

public void updateContent(AbstractBusinessObject abstractBusinessObject)
Update content.

Parameters:
abstractBusinessObject - the abstract business object

checkDirty

public abstract void checkDirty()
Check dirty.


getAbstractBusinessObject

public abstract AbstractBusinessObject getAbstractBusinessObject()
Gets the abstract business object.

Returns:
the abstract business object

isVisible

public boolean isVisible()
Checks if is visible.

Returns:
true, if is visible