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

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
              extended by net.sourceforge.fixagora.basis.client.view.editor.SpreadSheetEditor
All Implemented Interfaces:
bibliothek.gui.dock.DockElement, bibliothek.gui.dock.DockElementRepresentative, bibliothek.gui.dock.station.support.PlaceholderListItem<bibliothek.gui.Dockable>, bibliothek.gui.Dockable

public class SpreadSheetEditor
extends AbstractBusinessObjectEditor

The Class SpreadSheetEditor.


Constructor Summary
SpreadSheetEditor(SpreadSheet spreadSheet, MainPanel mainPanel, BasisClientConnector basisClientConnector)
          Instantiates a new spread sheet editor.
 
Method Summary
 void checkDirty()
          Check dirty.
 void closeAbstractBusinessObjectEditor()
          Close abstract business object editor.
 void format(SpreadSheetEditorSheet.FormatAction formatAction)
          Format.
 AbstractBusinessObject getAbstractBusinessObject()
          Gets the abstract business object.
 int getSelectionState()
          Gets the selection state.
 SpreadSheet getSpreadSheet()
          Gets the spread sheet.
 void handleFocus()
          Handle focus.
 void initContent()
          Inits the content.
 void onUpdateColumnFormatResponse(UpdateColumnFormatResponse updateColumnFormatResponse)
          On update column format response.
 void onUpdateFullSheetResponse(UpdateFullSheetResponse updateFullSheetResponse)
          On update full sheet response.
 void onUpdateRowFormatResponse(UpdateRowFormatResponse updateRowFormatResponse)
          On update row format response.
 void onUpdateSheetCellFormatResponse(UpdateSheetCellFormatResponse updateSheetCellFormatResponse)
          On update sheet cell format response.
 void onUpdateSheetCellResponse(UpdateSheetCellResponse updateSheetCellResponse)
          On update sheet cell response.
 void onUpdateSheetConditionalFormatResponse(UpdateSheetConditionalFormatResponse updateSheetConditionalFormatResponse)
          On update sheet conditional format response.
 void postConstruct()
          Post construct.
 void save()
          Save.
 void switchShowingFormula(boolean showingFormula)
          Switch showing formula.
 void updateContent(AbstractBusinessObject abstractBusinessObject)
          Update content.
 void updateRoles(java.util.List<FRole> roles)
          Update roles.
 
Methods inherited from class net.sourceforge.fixagora.basis.client.view.editor.AbstractBusinessObjectEditor
checkName, getBasisClientConnector, getBugIcon, getMainPanel, getNameWarningLabel, getSelectedTab, getWarningIcon, isConsistent, isDirty, isEditable, isVisible
 
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

SpreadSheetEditor

public SpreadSheetEditor(SpreadSheet spreadSheet,
                         MainPanel mainPanel,
                         BasisClientConnector basisClientConnector)
Instantiates a new spread sheet editor.

Parameters:
spreadSheet - the spread sheet
mainPanel - the main panel
basisClientConnector - the basis client connector
Method Detail

initContent

public void initContent()
Description copied from class: AbstractBusinessObjectEditor
Inits the content.

Specified by:
initContent in class AbstractBusinessObjectEditor

getSpreadSheet

public SpreadSheet getSpreadSheet()
Gets the spread sheet.

Returns:
the spread sheet

save

public void save()
Description copied from class: AbstractBusinessObjectEditor
Save.

Overrides:
save in class AbstractBusinessObjectEditor

checkDirty

public void checkDirty()
Description copied from class: AbstractBusinessObjectEditor
Check dirty.

Specified by:
checkDirty in class AbstractBusinessObjectEditor

updateContent

public void updateContent(AbstractBusinessObject abstractBusinessObject)
Description copied from class: AbstractBusinessObjectEditor
Update content.

Overrides:
updateContent in class AbstractBusinessObjectEditor
Parameters:
abstractBusinessObject - the abstract business object

updateRoles

public void updateRoles(java.util.List<FRole> roles)
Description copied from class: AbstractBusinessObjectEditor
Update roles.

Specified by:
updateRoles in class AbstractBusinessObjectEditor
Parameters:
roles - the roles

closeAbstractBusinessObjectEditor

public void closeAbstractBusinessObjectEditor()
Description copied from class: AbstractBusinessObjectEditor
Close abstract business object editor.

Overrides:
closeAbstractBusinessObjectEditor in class AbstractBusinessObjectEditor

onUpdateSheetCellResponse

public void onUpdateSheetCellResponse(UpdateSheetCellResponse updateSheetCellResponse)
On update sheet cell response.

Parameters:
updateSheetCellResponse - the update sheet cell response

postConstruct

public void postConstruct()
Description copied from class: AbstractBusinessObjectEditor
Post construct.

Overrides:
postConstruct in class AbstractBusinessObjectEditor

onUpdateSheetCellFormatResponse

public void onUpdateSheetCellFormatResponse(UpdateSheetCellFormatResponse updateSheetCellFormatResponse)
On update sheet cell format response.

Parameters:
updateSheetCellFormatResponse - the update sheet cell format response

onUpdateColumnFormatResponse

public void onUpdateColumnFormatResponse(UpdateColumnFormatResponse updateColumnFormatResponse)
On update column format response.

Parameters:
updateColumnFormatResponse - the update column format response

onUpdateRowFormatResponse

public void onUpdateRowFormatResponse(UpdateRowFormatResponse updateRowFormatResponse)
On update row format response.

Parameters:
updateRowFormatResponse - the update row format response

onUpdateSheetConditionalFormatResponse

public void onUpdateSheetConditionalFormatResponse(UpdateSheetConditionalFormatResponse updateSheetConditionalFormatResponse)
On update sheet conditional format response.

Parameters:
updateSheetConditionalFormatResponse - the update sheet conditional format response

handleFocus

public void handleFocus()
Description copied from class: AbstractBusinessObjectEditor
Handle focus.

Overrides:
handleFocus in class AbstractBusinessObjectEditor

format

public void format(SpreadSheetEditorSheet.FormatAction formatAction)
Format.

Parameters:
formatAction - the format action

onUpdateFullSheetResponse

public void onUpdateFullSheetResponse(UpdateFullSheetResponse updateFullSheetResponse)
On update full sheet response.

Parameters:
updateFullSheetResponse - the update full sheet response

switchShowingFormula

public void switchShowingFormula(boolean showingFormula)
Switch showing formula.

Parameters:
showingFormula - the showing formula

getAbstractBusinessObject

public AbstractBusinessObject getAbstractBusinessObject()
Description copied from class: AbstractBusinessObjectEditor
Gets the abstract business object.

Specified by:
getAbstractBusinessObject in class AbstractBusinessObjectEditor
Returns:
the abstract business object

getSelectionState

public int getSelectionState()
Gets the selection state.

Returns:
the selection state