Package com.ribsapp
Class RBEditorUI
- java.lang.Object
-
- com.reportmill.editor.RMEditorUI
-
- com.ribsapp.RBEditorUI
-
public class RBEditorUI extends RMEditorUI
This RMEditor subclass customizes RMEditor behavior for Ribs.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.reportmill.editor.RMEditorUI
RMEditorUI.EditorViewport
-
-
Constructor Summary
Constructors Constructor Description RBEditorUI()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbuildBindersList()Builds the binders list UI.RBEditorgetEditorRB()Returns this editor ui's editor as RBEditor.static RBEditorgetMainRBEditor()Returns the main Ribs editor.static RBEditorUIgetMainRBEditorUI()Returns the main Ribs editor UI.static RBEditorUIgetRBEditorUI(RBEditor anEditor)Returns the editor ui for the given editor.RBListBindergetSelectedBinder()Returns the currently selected binder for this editor.RJPanelgetUI()Returns the UI for the editor.booleanisBindersPanelVisible()Returns whether binder panel is visible or hidden.booleanisControllerSelected()Returns whether controller is selected.RMEditorUInewDocument()Creates a new editor window for a new document.RMEditorUIopen(java.lang.Object aSource)Creates a new editor window by opening the document from the given source.static voidpreviewXML(RMEditor anEditor)Preview XML.voidresetUI()Updates Swing UI controls from current selection.voidrespondUI(java.lang.Object anObj)Updates current selection from UI controls.voidrevert()Reloads the current editor document from the last saved version.voidrunWelcome()Runs the welcome panel.voidsaveAs(java.lang.String aPath)Saves the current editor document to the given path.voidsetBindersPanelVisible(boolean aValue)Make binder panel visible or hidden.voidsetSelectedBinder(RBListBinder aBinder)Sets the currently selected binder for this editor.voidwindowDidResize()Overridden from RMEditor to suppress editor resize behavior.-
Methods inherited from class com.reportmill.editor.RMEditorUI
close, exportFlash, exportFlashHTML, exportPDF, getEditor, getEditor, getEditorCount, getEditorUI, getMainEditor, getMainEditorUI, getWindow, open, openSample, previewApplet, previewCSV, previewFlash, previewHTML, previewJPG, previewPDF, previewPNG, previewXML, quit, removeEditor, reset, save, saveAs, setEditor, setMainEditorUI, setUI, showPopupMenu, toggleRulers, windowShouldClose
-
-
-
-
Method Detail
-
getUI
public RJPanel getUI()
Returns the UI for the editor.- Overrides:
getUIin classRMEditorUI
-
resetUI
public void resetUI()
Updates Swing UI controls from current selection.- Overrides:
resetUIin classRMEditorUI
-
respondUI
public void respondUI(java.lang.Object anObj)
Updates current selection from UI controls.- Overrides:
respondUIin classRMEditorUI
-
getMainRBEditorUI
public static RBEditorUI getMainRBEditorUI()
Returns the main Ribs editor UI.
-
getMainRBEditor
public static RBEditor getMainRBEditor()
Returns the main Ribs editor.
-
getRBEditorUI
public static RBEditorUI getRBEditorUI(RBEditor anEditor)
Returns the editor ui for the given editor.
-
getEditorRB
public RBEditor getEditorRB()
Returns this editor ui's editor as RBEditor.
-
newDocument
public RMEditorUI newDocument()
Creates a new editor window for a new document.- Overrides:
newDocumentin classRMEditorUI
-
open
public RMEditorUI open(java.lang.Object aSource)
Creates a new editor window by opening the document from the given source.- Overrides:
openin classRMEditorUI
-
saveAs
public void saveAs(java.lang.String aPath)
Saves the current editor document to the given path.- Overrides:
saveAsin classRMEditorUI
-
revert
public void revert()
Reloads the current editor document from the last saved version.- Overrides:
revertin classRMEditorUI
-
previewXML
public static void previewXML(RMEditor anEditor)
Preview XML.
-
isControllerSelected
public boolean isControllerSelected()
Returns whether controller is selected.
-
getSelectedBinder
public RBListBinder getSelectedBinder()
Returns the currently selected binder for this editor.
-
setSelectedBinder
public void setSelectedBinder(RBListBinder aBinder)
Sets the currently selected binder for this editor.
-
isBindersPanelVisible
public boolean isBindersPanelVisible()
Returns whether binder panel is visible or hidden.
-
setBindersPanelVisible
public void setBindersPanelVisible(boolean aValue)
Make binder panel visible or hidden.
-
buildBindersList
public void buildBindersList()
Builds the binders list UI.
-
runWelcome
public void runWelcome()
Runs the welcome panel.- Overrides:
runWelcomein classRMEditorUI
-
windowDidResize
public void windowDidResize()
Overridden from RMEditor to suppress editor resize behavior. RBEditor.rib sets minimum sizes for the editor, which is handled by RJPanel, so having a second windowsize constrainer just causes problems.- Overrides:
windowDidResizein classRMEditorUI
-
-