|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--java.awt.Window | +--java.awt.Frame | +--javax.swing.JFrame | +--com.borland.primetime.ide.Browser
This is the Browser window, which is the center of all JBuilder UI. The Browser window consists of several different interacting parts:
BrowserMenuBar
,
BrowserToolBarPane
,
ProjectView
,
ContentManager
,
StructureView
,
MessageView
,
StatusView
, Serialized FormInner Class Summary | |
protected class |
Browser.UpdateTimer
|
Inner classes inherited from class javax.swing.JFrame |
javax.swing.JFrame.AccessibleJFrame |
Field Summary | |
static UpdateAction |
ACTION_BrowserCascadeAll
Scans the list of existing Browsers in this JBuilder session, and arrages them all in a Z-order cascade, with the top of the Z-order remaining in front. |
static BrowserAction |
ACTION_BrowserExit
Calls the close() method on this Browser. |
static BrowserAction |
ACTION_BrowserIconify
|
static UpdateAction |
ACTION_BrowserMinimizeAll
Scans the list of existing Browsers in this JBuilder session, and minimizes them all. |
static UpdateAction |
ACTION_BrowserNew
Creates a new browser window when invoked. |
static UpdateAction |
ACTION_BrowserRestoreAll
Scans the list of existing Browsers in this JBuilder session, and restores them all from a minimized state. |
static BrowserAction |
ACTION_BrowserShow
Calls the show() method on this browser window. |
static UpdateAction |
ACTION_BrowserTileAll
Scans the list of existing Browsers in this JBuilder session, and tiles them all to fit on the screen at the same time. |
static BrowserAction |
ACTION_EditDefaultProjectProperties
The static action 'EditDefaultProjectProperties' displays the PropertyDialog to the user for default project settings. |
static BrowserAction |
ACTION_EditProjectProperties
The static action 'EditProjectProperties' displays the PropertyDialog to the user for the active project's settings. |
static BrowserAction |
ACTION_FileOpen
Displays a FileChooser dialog allowing the user to select a file to open. |
static BrowserAction |
ACTION_NavigateBack
Navigates the Browser to the prior item in the Browser's history list. |
static BrowserAction |
ACTION_NavigateForward
Navigates the Browser to the next item in the Browser's history list. |
static BrowserAction |
ACTION_NavigateHome
Navigates the Browser back the 'home' position. |
static BrowserAction |
ACTION_NewFolder
|
static BrowserAction |
ACTION_NextOpenNode
Navigates the Browser to the next item in the open tabs list |
static BrowserAction |
ACTION_NodeClose
Calls the closeNode(...) method on this Browser passing the Node returned from the getActiveNode() method on this Browser. |
static BrowserAction |
ACTION_NodeCloseAll
Calls the closeNodes(...) method on this Browser passing the the Node array returned from the getNodes() method on this Browser. |
static BrowserAction |
ACTION_NodeRename
Renames the active node in the Browser. |
static BrowserAction |
ACTION_NodeRevert
Retrieves the 'active' Node using the getActiveNode() method on this Browser. |
static BrowserAction |
ACTION_NodeSave
Saves the active Node if it has been modified. |
static BrowserAction |
ACTION_NodeSaveAll
Saves all modified buffers and projects. |
static BrowserAction |
ACTION_NodeSaveAs
Saves the active Node under a user selected name. |
static BrowserAction |
ACTION_PreviousOpenNode
Navigates the Browser to the next item in the open tabs list |
static BrowserAction |
ACTION_ProjectFileOpen
|
static BrowserAction |
ACTION_ProjectNodeRename
Renames the active selected node in the ProjectView to a new name. |
static BrowserAction |
ACTION_ProjectSave
Saves the active Project if it has been modified. |
static BrowserAction |
ACTION_ProjectSaveAs
Saves the active Project under a new name. |
static BrowserAction |
ACTION_ToggleCurtain
|
static BrowserAction |
ACTION_ToolBarHideAll
|
static BrowserAction |
ACTION_ToolBarShowAll
|
static DelegateAction |
DELEGATE_ContextMenu
|
static DelegateAction |
DELEGATE_Copy
|
static DelegateAction |
DELEGATE_Cut
|
static DelegateAction |
DELEGATE_Delete
|
static DelegateAction |
DELEGATE_Paste
|
static DelegateAction |
DELEGATE_Redo
|
static DelegateAction |
DELEGATE_Refresh
|
static DelegateAction |
DELEGATE_SearchAgain
|
static DelegateAction |
DELEGATE_SearchFind
|
static DelegateAction |
DELEGATE_SearchIncremental
|
static DelegateAction |
DELEGATE_SearchReplace
|
static DelegateAction |
DELEGATE_SelectAll
|
static DelegateAction |
DELEGATE_Undo
|
static ActionGroup |
GROUP_NavigateTo
|
static ActionGroup |
GROUP_NodeOpen
|
static ActionGroup |
GROUP_OpenBrowsers
|
static ActionGroup |
GROUP_OpenWindows
|
static ActionGroup |
GROUP_Reopen
|
static ActionGroup |
GROUP_ToolBars
|
static BrowserStateAction |
STATE_ContentPaneVisible
The state 'ContentPaneVisible' controls the visible state of this Browser's ContentManager. |
static BrowserStateAction |
STATE_MessagePaneVisible
The state 'MessagePaneVisible' controls the visible state of this Browser's MessageView. |
static BrowserStateAction |
STATE_ProjectPaneVisible
The state 'ProjectPaneVisible' controls the visible state of this Browser's ProjectView. |
static BrowserStateAction |
STATE_StatusPaneVisible
The state 'StatusPaneVisible' controls the visible state of this Browser's StatusView. |
static BrowserStateAction |
STATE_StructurePaneVisible
The state 'StructurePaneVisible' controls the visible state of this Browser's StructureView. |
static BrowserStateAction |
STATE_ToolBarPaneVisible
The state 'ToolBarVisible' controls the visible state of this Browser's main toolbar. |
protected Browser.UpdateTimer |
updateTimer
|
Fields inherited from class javax.swing.JFrame |
accessibleContext,
rootPane,
rootPaneCheckingEnabled |
Fields inherited from class java.awt.Frame |
CROSSHAIR_CURSOR,
DEFAULT_CURSOR,
E_RESIZE_CURSOR,
HAND_CURSOR,
ICONIFIED,
MOVE_CURSOR,
N_RESIZE_CURSOR,
NE_RESIZE_CURSOR,
NORMAL,
NW_RESIZE_CURSOR,
S_RESIZE_CURSOR,
SE_RESIZE_CURSOR,
SW_RESIZE_CURSOR,
TEXT_CURSOR,
W_RESIZE_CURSOR,
WAIT_CURSOR |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
LEFT_ALIGNMENT,
RIGHT_ALIGNMENT,
TOP_ALIGNMENT |
Constructor Summary | |
Browser()
Constructs a new Browser window. |
Method Summary | |
void |
addBrowserListener(BrowserListener l)
Adds a BrowserListener to listen to Browser events from this Browser. |
void |
addButton(ActionButton button)
|
static void |
addMenuGroup(ActionGroup group)
Adds an ActionGroup to the end of the static list of ActionGroups that will appear in all subsequently created Browser window menus. |
static void |
addMenuGroup(int index,
ActionGroup group)
Inserts an ActionGroup into the static list of ActionGroups at the specified index. |
static void |
addStaticBrowserListener(BrowserListener l)
Adds a BrowserListener to listen to Browser events from *ALL* existing Browsers. |
static void |
addToolBarGroup(ActionGroup group)
Adds an ActionGroup to the end of the static list of ActionGroups that will appear in all subsequently created Browser window toolbars. |
static void |
addToolBarGroup(int index,
ActionGroup group)
Inserts an ActionGroup into the static list of toolbar ActionGroups at the specified index. |
static boolean |
canDisplayNode(Node node)
Returns the count of NodeViewers that have 'accepted' the specified Node, and are available to display the contents of the Node in the ContentView. |
boolean |
canNavigateBack()
Returns true if the navigation stack pointer is not at the beginning of the navigation stack. |
boolean |
canNavigateForward()
Returns true if there are items in the navigation stack beyond the current item. |
static java.io.File |
checkExtension(UrlNode urlNode,
java.io.File file)
Checks the node type extension against the selected file. |
boolean |
checkOverwrite(java.lang.String fileName)
Checks if the user wishes to overwrite the specified file. |
void |
clearWaitMessages()
Hides the message window, and kills any delayed messages that may still be in the queue. |
static java.lang.String |
clipPath(java.awt.FontMetrics fm,
java.lang.String text,
int width)
Clips a file path as needed in the middle to fit the given width. |
static java.lang.String |
clipPath(java.lang.String text)
|
void |
close()
Closes this Browser window and saves any modified files. |
void |
closeNode(Node node)
Closes the specified Node and removes it from this Browser's ContentManager. |
void |
closeNodes(Node[] nodes)
Closes the specified list of Nodes and removes them from this Browser's ContentManager. |
void |
closeProject(Project project)
|
void |
delayWaitMessage(int delay,
java.lang.String title,
java.lang.String text)
Displays an information window centered on the screen with the specified title and text messages - after the specified delay (ms) has passed. |
void |
doOpen(java.io.File openedFile,
boolean add2Proj)
|
void |
doRename(Node node)
Checks the specified node to see if it is an instance of UrlNode or a LightweightNode, and calls doRenameUrlNode(UrlNode) or doRenameLightweightNode(LightweightNode) respectively. |
void |
doRenameLightweightNode(LightweightNode liteNode)
Renames the specified LightweightNode to a user specified name. |
void |
doRenameUrlNode(UrlNode urlNode)
Renames the specified UrlNode to a user specified name. |
void |
doRevert(Node[] nodes)
Scans the array of nodes and calls doRevert(UrlNode) on all UrlNode instances in the array. |
void |
doRevert(UrlNode urlNode)
Reverts the specified UrlNode. |
void |
doSave(Node[] nodes)
Scans and attempts to save each of the UrlNode instances in the passed array. |
void |
doSave(UrlNode urlNode)
Saves the specified UrlNode - or if it is a new node, doSaveAs(UrlNode) is called passing the specified node. |
void |
doSaveAll(boolean checked)
Scans entire PrimeTime environment for modified buffers and projects and optionally presents a list of these to the user (if checked flag is true) to select which ones to save. |
void |
doSaveAs(UrlNode urlNode)
Saves the specifed UrlNode as specified by the user. |
void |
doSaveChecked(Node[] nodes)
Presents the specified list of nodes in a save dialog for the user to select which ones they want to save. |
void |
doSaveChecked(UrlNode urlNode)
Queries the user if they want to save the specified UrlNode. |
static Browser |
findBrowser(java.lang.Object source)
Walks up the containership hierarchy to try to find a Browser instance from the passed Object (if the passed Object is a Component). |
protected void |
fireBrowserActivated()
The 'browserActivated' event is fired each time the Browser window is activated - by switching to this Browser from another Browser, or by switching to this Browser from another application. |
protected void |
fireBrowserClosed()
The 'browserClosed' event is fired when a Browser is finally closed. |
protected void |
fireBrowserClosing()
The 'browserClosing' event is fired when the Browser is attempting to close. |
protected void |
fireBrowserDeactivated()
The 'browserDeactivated' event is fired each time the Browser window is deactivated - by switching to another Browser, or by switching to another application. |
protected void |
fireBrowserNodeActivated(Node node)
The 'browserNodeActivated' event is fired when the 'active' Node in the Browser has changed - ie. |
protected void |
fireBrowserNodeClosed(Node node)
The 'browserNodeClosed' event is fired when a Node in the Browser is closed. |
protected void |
fireBrowserOpened()
The 'browserOpened' event is fired when a Browser is opened for the first time. |
protected void |
fireBrowserProjectActivated(Project project)
The 'browserProjectActivated' event is fired when the 'active' Project in the Browser has changed - ie. |
protected void |
fireBrowserProjectClosed(Project project)
The 'browserProjectClosed' event is fired when a Project in the Browser is closed. |
protected void |
fireBrowserViewerActivated(Node node,
NodeViewer viewer)
The 'browserViewerActivated' event is fired when the 'active' Node in the Browser's 'active' NodeViewer has changed - ie. |
protected void |
fireBrowserViewerDeactivating(Node node,
NodeViewer viewer)
The 'browserViewerDeactivating' event is fired when the active Node's viewer is changing - ie. |
static Browser |
getActiveBrowser()
Returns the active (most recently activated) Browser in this JBuilder session. |
Node |
getActiveNode()
Returns the active Node in this Browser. |
Project |
getActiveProject()
|
NodeViewer |
getActiveViewer(Node node)
Returns the active NodeViewer for the specified Node in this Browser. |
static Node[] |
getAllOpenNodes()
Returns all the open Nodes in all Browsers. |
static int |
getBrowserCount()
Returns the count of Browsers in this JBuilder session. |
static Browser[] |
getBrowsers()
Returns a Browser array in the correct Z order (order of activation), with the most recently active Browser first. |
static Browser[] |
getBrowsersNonZ()
Returns a Browser array in the non-Z order (order of creation), with the most recently created Browser last. |
static java.lang.String |
getBrowserTitle()
Returns the browser title. |
ContentManager |
getContentManager()
Returns this Browser's ContentManager instance. |
static Project |
getDefaultProject()
Returns the Default project. |
static Url |
getDefaultProjectUrl()
Returns a Url pointing to the Default project. |
static java.lang.String |
getIDELookAndFeelClassName()
Returns the class name of the IDE's active LookAndFeel. |
static java.io.File |
getLastDirectory()
|
Url |
getLastOpenedUrl()
Returns the last opened url address. |
static ActionGroup |
getMenuGroup(int index)
Returns the menu ActionGroup at the specied index. |
static int |
getMenuGroupCount()
Returns the static count of ActionGroups that appear in all Browser menus. |
static ActionGroup[] |
getMenuGroups()
Returns the static list of ActionGroups that appear in all Browser menus. |
MessageView |
getMessageView()
Returns this Browser's MessageView instance. |
Node[] |
getNavigationHistory()
|
Node |
getNavigationHistory(int index)
|
int |
getNavigationHistoryCount()
|
int |
getNavigationIndex()
|
int |
getOpenNodeCount()
Returns the count of open Nodes in this Browser. |
Node[] |
getOpenNodes()
Returns the open Nodes in this Browser. |
ProjectView |
getProjectView()
Returns this Browser's ProjectView instance. |
StatusView |
getStatusView()
Returns this Browser's StatusView instance. |
static ActionGroup |
getToolBarGroup(int index)
Returns the toolbar ActionGroup at the specied index. |
static int |
getToolBarGroupCount()
Returns the count of static Browser toolbars. |
static ActionGroup[] |
getToolBarGroups()
Returns the static list of ActionGroups that appear in all Browser toolbars. |
BrowserToolBarPane |
getToolBarPane()
Returns this browser's BrowserToolBarPane instance. |
int |
getViewerCount(Node node)
Returns the count of NodeViewers that have 'accepted' the specified Node, and are available to display the contents of the Node in the ContentView. |
NodeViewer |
getViewerOfType(Node node,
java.lang.Class clazz)
Returns the first NodeViewer instance of the specified type that have is displaying the specified Node. |
NodeViewer[] |
getViewers(Node node)
Returns the NodeViewers that have 'accepted' the specified Node, and are available to display the contents of the Node in the ContentView. |
boolean |
isContentPaneVisible()
Returns this browser's content pane's visible state. |
boolean |
isMessagePaneVisible()
Returns this browser's message pane's visible state. |
boolean |
isOpenNode(Node node)
Returns true if the passed node is currently being displayed in this Browser. |
boolean |
isProjectPaneVisible()
Returns this browser's project pane's visible state. |
boolean |
isStatusPaneVisible()
Returns this browser's status pane's visible state. |
boolean |
isStructurePaneVisible()
Returns this browser's structure pane's visible state. |
boolean |
isToolBarPaneVisible()
Returns this browser toolbar pane's visible state. |
void |
navigateBack()
Moves the active node to the previous node in the navigation stack (if the navigation stack pointer is not at the beginning). |
void |
navigateForward()
Moves the active node to the next node in the navigation stack (if the navigation stack pointer is not at the end). |
void |
navigateHome()
Moves the active node to the first node in the navigation stack (if the navigation stack pointer is not at the beginning). |
void |
navigateTo(int index)
|
void |
navigateTo(Node node)
Effectively a 'drill-in'. |
void |
nextOpenNode(boolean requestFocus)
Sets the next node as the active node in this Browser window. |
void |
openFile(boolean add2Proj)
|
void |
openProjectFile()
|
void |
previousOpenNode(boolean requestFocus)
Sets the previous node as the active node in this Browser window. |
static void |
registerNodeViewerFactory(NodeViewerFactory factory)
Registers a NodeViewerFactory class for displaying Node contents. |
static void |
registerNodeViewerFactory(NodeViewerFactory factory,
boolean asFirst)
Registers a NodeViewerFactory class for displaying Node contents. |
void |
removeBrowserListener(BrowserListener l)
Removes a BrowserListener from this Browser. |
void |
removeButton(ActionButton button)
|
static void |
removeMenuGroup(ActionGroup group)
Removes an ActionGroup from the static list of ActionGroups that appear in all subsequently created Browser window menus. |
static void |
removeStaticBrowserListener(BrowserListener l)
Removes a BrowserListener from the static listener list. |
static void |
removeToolBarGroup(ActionGroup group)
Removes an ActionGroup from the static list of ActionGroups that appear in all subsequently created Browser window toolbars. |
void |
setActiveNode(Node node,
boolean requestFocus)
Sets the 'active' open Node in this Browser. |
void |
setActiveProject(Project project)
|
void |
setActiveViewer(Node node,
NodeViewer viewer,
boolean requestFocus)
Sets the active NodeViewer for the specified Node. |
void |
setBounds(java.awt.Rectangle b)
|
static void |
setBrowserTitle(java.lang.String title)
Sets the browser title. |
void |
setContentPaneVisible(boolean visible)
Hides/shows this browser's content pane. |
static void |
setDefaultProjectUrl(Url url)
Sets the default project's url. |
static void |
setIDELookAndFeelClassName(java.lang.String className)
Sets the LookAndFeel for the whole JBuilder IDE (Browsers and all other addins). |
static void |
setLastDirectory(java.io.File file)
Sets the last visited directory. |
void |
setLastOpenedUrl(Url url)
Sets the last opened url address. |
void |
setMessagePaneVisible(boolean visible)
Hides/shows this browser's message pane. |
void |
setProjectPaneVisible(boolean visible)
Hides/shows this browser's project pane. |
void |
setStatusPaneVisible(boolean visible)
Hides/shows this browser's status pane. |
void |
setStructurePaneVisible(boolean visible)
Hides/shows this browser's structure pane. |
void |
setToolBarPaneVisible(boolean visible)
Hides/shows this browser's toolbar pane. |
void |
showIllegalFileNameWarning(java.lang.String fileName)
Alerts the user that the passed filename is invalid. |
void |
toggleCurtain()
Toggles the project/structure left pane visible/invisible. |
void |
waitMessage(java.lang.String title,
java.lang.String text)
Displays an information window centered on the screen with the specified title and text messages. |
Methods inherited from class javax.swing.JFrame |
addImpl,
createRootPane,
frameInit,
getAccessibleContext,
getContentPane,
getDefaultCloseOperation,
getGlassPane,
getJMenuBar,
getLayeredPane,
getRootPane,
isRootPaneCheckingEnabled,
paramString,
processKeyEvent,
processWindowEvent,
remove,
setContentPane,
setDefaultCloseOperation,
setGlassPane,
setJMenuBar,
setLayeredPane,
setLayout,
setRootPane,
setRootPaneCheckingEnabled,
update |
Methods inherited from class java.awt.Frame |
addNotify,
finalize,
getCursorType,
getFrames,
getIconImage,
getMenuBar,
getState,
getTitle,
isResizable,
remove,
removeNotify,
setCursor,
setIconImage,
setMenuBar,
setResizable,
setState,
setTitle |
Methods inherited from class java.awt.Window |
addWindowListener,
applyResourceBundle,
applyResourceBundle,
dispose,
getFocusOwner,
getInputContext,
getLocale,
getOwnedWindows,
getOwner,
getToolkit,
getWarningString,
hide,
isShowing,
pack,
postEvent,
processEvent,
removeWindowListener,
setCursor,
show,
toBack,
toFront |
Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
countComponents,
deliverEvent,
doLayout,
findComponentAt,
findComponentAt,
getAlignmentX,
getAlignmentY,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents,
getInsets,
getLayout,
getMaximumSize,
getMinimumSize,
getPreferredSize,
insets,
invalidate,
isAncestorOf,
layout,
list,
list,
locate,
minimumSize,
paint,
paintComponents,
preferredSize,
print,
printComponents,
processContainerEvent,
remove,
removeAll,
removeContainerListener,
setFont,
validate,
validateTree |
Methods inherited from class java.awt.Component |
action,
add,
addComponentListener,
addFocusListener,
addInputMethodListener,
addKeyListener,
addMouseListener,
addMouseMotionListener,
addPropertyChangeListener,
addPropertyChangeListener,
bounds,
checkImage,
checkImage,
coalesceEvents,
contains,
contains,
createImage,
createImage,
disable,
disableEvents,
dispatchEvent,
enable,
enable,
enableEvents,
enableInputMethods,
firePropertyChange,
getBackground,
getBounds,
getBounds,
getColorModel,
getComponentOrientation,
getCursor,
getDropTarget,
getFont,
getFontMetrics,
getForeground,
getGraphics,
getHeight,
getInputMethodRequests,
getLocation,
getLocation,
getLocationOnScreen,
getName,
getParent,
getPeer,
getSize,
getSize,
getTreeLock,
getWidth,
getX,
getY,
gotFocus,
handleEvent,
hasFocus,
imageUpdate,
inside,
isDisplayable,
isDoubleBuffered,
isEnabled,
isFocusTraversable,
isLightweight,
isOpaque,
isValid,
isVisible,
keyDown,
keyUp,
list,
list,
list,
location,
lostFocus,
mouseDown,
mouseDrag,
mouseEnter,
mouseExit,
mouseMove,
mouseUp,
move,
nextFocus,
paintAll,
prepareImage,
prepareImage,
printAll,
processComponentEvent,
processFocusEvent,
processInputMethodEvent,
processMouseEvent,
processMouseMotionEvent,
removeComponentListener,
removeFocusListener,
removeInputMethodListener,
removeKeyListener,
removeMouseListener,
removeMouseMotionListener,
removePropertyChangeListener,
removePropertyChangeListener,
repaint,
repaint,
repaint,
repaint,
requestFocus,
reshape,
resize,
resize,
setBackground,
setBounds,
setComponentOrientation,
setDropTarget,
setEnabled,
setForeground,
setLocale,
setLocation,
setLocation,
setName,
setSize,
setSize,
setVisible,
show,
size,
toString,
transferFocus |
Methods inherited from class java.lang.Object |
clone,
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected Browser.UpdateTimer updateTimer
public static UpdateAction ACTION_BrowserNew
public static UpdateAction ACTION_BrowserMinimizeAll
public static UpdateAction ACTION_BrowserRestoreAll
public static UpdateAction ACTION_BrowserCascadeAll
public static UpdateAction ACTION_BrowserTileAll
public static BrowserAction ACTION_BrowserShow
public static BrowserAction ACTION_BrowserIconify
public static BrowserAction ACTION_BrowserExit
public static ActionGroup GROUP_OpenWindows
public static BrowserAction ACTION_NewFolder
public static BrowserAction ACTION_FileOpen
public static BrowserAction ACTION_ProjectFileOpen
public static BrowserAction ACTION_NodeSave
public static BrowserAction ACTION_NodeSaveAs
public static BrowserAction ACTION_NodeRename
public static BrowserAction ACTION_ProjectNodeRename
public static BrowserAction ACTION_NodeSaveAll
public static BrowserAction ACTION_ProjectSave
public static BrowserAction ACTION_ProjectSaveAs
public static BrowserAction ACTION_NodeClose
public static BrowserAction ACTION_NodeCloseAll
public static BrowserAction ACTION_NodeRevert
public static BrowserAction ACTION_NavigateHome
public static BrowserAction ACTION_NavigateBack
public static BrowserAction ACTION_NavigateForward
public static ActionGroup GROUP_NavigateTo
public static BrowserAction ACTION_NextOpenNode
public static BrowserAction ACTION_PreviousOpenNode
public static BrowserStateAction STATE_ToolBarPaneVisible
public static BrowserStateAction STATE_ProjectPaneVisible
The state 'ProjectPaneVisible' controls the visible state of this Browser's ProjectView. If the state is true, the ProjectView is visible. If the state is false, the ProjectView is invisible.
public static BrowserStateAction STATE_ContentPaneVisible
The state 'ContentPaneVisible' controls the visible state of this Browser's ContentManager. If the state is true, the ContentManager is visible. If the state is false, the ContentPane is invisible.
public static BrowserStateAction STATE_StructurePaneVisible
The state 'StructurePaneVisible' controls the visible state of this Browser's StructureView. If the state is true, the StructureView is visible. If the state is false, the StructureView is invisible.
public static BrowserAction ACTION_ToggleCurtain
public static BrowserStateAction STATE_MessagePaneVisible
The state 'MessagePaneVisible' controls the visible state of this Browser's MessageView. If the state is true, the MessageView is visible. If the state is false, the MessageView is invisible.
public static BrowserStateAction STATE_StatusPaneVisible
public static DelegateAction DELEGATE_Undo
public static DelegateAction DELEGATE_Redo
public static DelegateAction DELEGATE_Cut
public static DelegateAction DELEGATE_Copy
public static DelegateAction DELEGATE_Paste
public static DelegateAction DELEGATE_Delete
public static DelegateAction DELEGATE_SelectAll
public static DelegateAction DELEGATE_SearchFind
public static DelegateAction DELEGATE_SearchReplace
public static DelegateAction DELEGATE_SearchAgain
public static DelegateAction DELEGATE_SearchIncremental
public static DelegateAction DELEGATE_ContextMenu
public static DelegateAction DELEGATE_Refresh
public static BrowserAction ACTION_ToolBarShowAll
public static BrowserAction ACTION_ToolBarHideAll
public static ActionGroup GROUP_ToolBars
public static ActionGroup GROUP_OpenBrowsers
public static ActionGroup GROUP_NodeOpen
public static final ActionGroup GROUP_Reopen
public static BrowserAction ACTION_EditProjectProperties
public static BrowserAction ACTION_EditDefaultProjectProperties
Constructor Detail |
public Browser()
Method Detail |
public static int getBrowserCount()
public static Browser[] getBrowsers()
public static Browser[] getBrowsersNonZ()
public static Browser getActiveBrowser()
Returns the active (most recently activated) Browser in this JBuilder session.
Typically, if a sub-system requires a Browser, it will have been initialized with access to the specific Browser, and should use that instance rather than calling this method.
public static void registerNodeViewerFactory(NodeViewerFactory factory)
Registers a NodeViewerFactory class for displaying Node contents. This NodeViewerFactory will be added to the end of the cannonical listing of all NodeViewerFactories - thus will display as the last tab (as of yet).
factory
- The NodeViewerFactory to register.public static void registerNodeViewerFactory(NodeViewerFactory factory, boolean asFirst)
Registers a NodeViewerFactory class for displaying Node contents. If the 'asFirst' paramter is set to true, this NodeViewerFactory will be inserted at the beginning of the cannonical listing of all NodeViewerFactories - thus will display as the first tab (as of yet). If the 'asFirst' parameter is false, the NodeViewerFactory will be added to the end of the list.
factory
- The NodeViewerFactory to register.asFirst
- True if the NodeViewerFactory is to be put at the beginning
of the cannonical listing, false if at the end.public static Browser findBrowser(java.lang.Object source)
source
- The Object source to try to find an associated Browser
instance for. This is typically an event object's source:
as in e.getSource().public static void setBrowserTitle(java.lang.String title)
title
- The browser titlepublic static java.lang.String getBrowserTitle()
public static void setDefaultProjectUrl(Url url)
url
- The new default project urlpublic static Url getDefaultProjectUrl()
public static Project getDefaultProject()
public static void setIDELookAndFeelClassName(java.lang.String className)
className
- A String representing the class name of the LookAndFeel
For example, "javax.swing.plaf.motif.MotifLookAndFeel"public static java.lang.String getIDELookAndFeelClassName()
public Url getLastOpenedUrl()
public void setLastOpenedUrl(Url url)
public static java.io.File getLastDirectory()
public static void setLastDirectory(java.io.File file)
public static java.lang.String clipPath(java.awt.FontMetrics fm, java.lang.String text, int width)
public static java.lang.String clipPath(java.lang.String text)
public void openProjectFile()
public void openFile(boolean add2Proj)
public void doOpen(java.io.File openedFile, boolean add2Proj)
public void setToolBarPaneVisible(boolean visible)
visible
- true for visible, false for invisiblepublic boolean isToolBarPaneVisible()
public void setProjectPaneVisible(boolean visible)
visible
- true for visible, false for invisiblepublic boolean isProjectPaneVisible()
public void setContentPaneVisible(boolean visible)
visible
- true for visible, false for invisiblepublic boolean isContentPaneVisible()
public void setStructurePaneVisible(boolean visible)
visible
- true for visible, false for invisiblepublic boolean isStructurePaneVisible()
public void toggleCurtain()
public void setMessagePaneVisible(boolean visible)
visible
- true for visible, false for invisiblepublic boolean isMessagePaneVisible()
public void setStatusPaneVisible(boolean visible)
visible
- true for visible, false for invisiblepublic boolean isStatusPaneVisible()
public int getNavigationHistoryCount()
public int getNavigationIndex()
public Node getNavigationHistory(int index)
public Node[] getNavigationHistory()
public void navigateTo(int index) throws java.lang.Exception
public void navigateTo(Node node) throws java.lang.Exception
node
- The node to navigate to (push onto the history stack)public boolean canNavigateForward()
public void navigateForward() throws java.lang.Exception
public boolean canNavigateBack()
public void navigateBack() throws java.lang.Exception
public void navigateHome() throws java.lang.Exception
public static int getMenuGroupCount()
public static ActionGroup getMenuGroup(int index)
index
- The index of the desired menu grouppublic static ActionGroup[] getMenuGroups()
public static void addMenuGroup(ActionGroup group)
group
- The ActionGroup to add to the static list of menus.public static void addMenuGroup(int index, ActionGroup group)
group
- The ActionGroup to insert into the static list of menus.public static void removeMenuGroup(ActionGroup group)
group
- The ActionGroup to remove from the static list of menus.public BrowserToolBarPane getToolBarPane()
public static int getToolBarGroupCount()
public static ActionGroup getToolBarGroup(int index)
index
- The index of the desired toolbar grouppublic static ActionGroup[] getToolBarGroups()
public static void addToolBarGroup(ActionGroup group)
group
- The ActionGroup to add to the static list of toolbars.public static void addToolBarGroup(int index, ActionGroup group)
group
- The ActionGroup to insert into the static list of toolbars.public static void removeToolBarGroup(ActionGroup group)
group
- The ActionGroup to remove from the static list of toolbars.public void waitMessage(java.lang.String title, java.lang.String text)
title
- The title to display in the mesage windowtext
- The message text to display in the message windowpublic void delayWaitMessage(int delay, java.lang.String title, java.lang.String text)
delay
- The time (ms) to wait before displaying the message windowtitle
- The title to display in the mesage windowtext
- The message text to display in the message windowpublic void clearWaitMessages()
public ProjectView getProjectView()
public void setActiveProject(Project project) throws java.lang.Exception
public Project getActiveProject()
public void closeProject(Project project) throws java.lang.Exception
public int getOpenNodeCount()
public Node[] getOpenNodes()
public static Node[] getAllOpenNodes()
public boolean isOpenNode(Node node)
node
- The Node to checkpublic void setActiveNode(Node node, boolean requestFocus) throws java.lang.Exception
Sets the 'active' open Node in this Browser. If the passed Node already exists in the set of opened Nodes, it will be activated as the active open node. If the passed Node is not in the opened list, it will be opened, activated, and added to the list.
Note that if the passed Node is not already the active Node in this Browser, calling this method will trigger several Browser events:
node
- The Node to set as the active Node in this Browser.public Node getActiveNode()
public void closeNode(Node node) throws java.lang.Exception
Closes the specified Node and removes it from this Browser's ContentManager.
This method will check if the Node has been modified. If it has, the user will be prompted to save changes. The user will be given the option to save, not save (revert), or cancel. Choosing save will save the changes to the Node before closing. Choosing not to save will revert the Node before closing (this is important if the Node's Buffer is being displayed in another Node - in this Browser or perhaps another). Choosing cancel will stop the whole process and the Node will not save, revert, or close.
Note that if the passed Node is the active Node in this ContentManager, calling this method will trigger several Browser events:
node
- The Node to close and remove from this Browser's ContentManager.public void closeNodes(Node[] nodes) throws java.lang.Exception
Closes the specified list of Nodes and removes them from this Browser's ContentManager.
This method will check if the Nodes have been modified. The user will be prompted to save changes to modified nodes in a grouped dialog. The user will be given the option to save or not save (revert) each node, or to cancel the close operation. Selecting save for each node will save the changes to the Node before closing. Choosing not to save will revert the Node before closing (this is important if the Node's Buffer is being displayed in another Node - in this Browser or perhaps another). Choosing cancel will stop the whole process and none of the Nodes will be saved, reverted, or closed.
Note that if one of the passed Nodes is the active Node in this ContentManager, calling this method will trigger several Browser events:
nodes
- The array of Nodes to close and remove from this Browser's
ContentManager.public void nextOpenNode(boolean requestFocus) throws java.lang.Exception
requestFocus
- True to set focus on the next node, false to move
without changing focuspublic void previousOpenNode(boolean requestFocus) throws java.lang.Exception
requestFocus
- True to set focus on the privious node, false to move
without changing focuspublic void doSaveAll(boolean checked) throws VetoException
checked
- If true, a dialog will be presented to the user to select
which files are to be saved.public void doSaveChecked(Node[] nodes) throws VetoException
nodes
- An array of Nodes to present to the userpublic void doSave(Node[] nodes) throws VetoException
nodes
- An array of nodes to attempt to savepublic void doSaveChecked(UrlNode urlNode) throws java.lang.Exception
urlNode
- The node to save or revert as the user specifiespublic void doSave(UrlNode urlNode) throws java.lang.Exception
urlNode
- The node to savepublic void doSaveAs(UrlNode urlNode) throws java.lang.Exception
urlNode
- The node to save aspublic void doRevert(Node[] nodes)
nodes
- The array of nodes to revertpublic void doRevert(UrlNode urlNode) throws java.lang.Exception
urlNode
- The node to revertpublic void doRename(Node node) throws java.lang.Exception
node
- The node to renamepublic void doRenameUrlNode(UrlNode urlNode) throws java.lang.Exception
urlNode
- The node to renameException
- several exceptions can be thrown when renaming a nodepublic void doRenameLightweightNode(LightweightNode liteNode)
liteNode
- The node to renamepublic static java.io.File checkExtension(UrlNode urlNode, java.io.File file)
public boolean checkOverwrite(java.lang.String fileName) throws VetoException
public void showIllegalFileNameWarning(java.lang.String fileName)
public static boolean canDisplayNode(Node node)
Returns the count of NodeViewers that have 'accepted' the specified Node, and are available to display the contents of the Node in the ContentView. This is the number of tabs showing along the bottom of the ContentView for the specified Node.
NOTE: If the passed Node is in the ContentManager's opened list, zero is silently returned. Be sure the Node in question is actually opened before checking the number of Viewers it has.
node
- The Node to get the count of NodeViewers for.public NodeViewer getViewerOfType(Node node, java.lang.Class clazz)
Returns the first NodeViewer instance of the specified type that have is displaying the specified Node. This is one of the tabs showing along the bottom of the ContentView for the specified Node.
NOTE: If the passed Node is in the ContentManager's opened list, null is returned. Be sure the Node in question is actually opened before retrieving a NodeViewer.
node
- The Node to get the NodeViewer forclazz
- The type (java.lang.Class) of NodeViewer to returnpublic int getViewerCount(Node node)
Returns the count of NodeViewers that have 'accepted' the specified Node, and are available to display the contents of the Node in the ContentView. This is the number of tabs showing along the bottom of the ContentView for the specified Node.
NOTE: If the passed Node is in the ContentManager's opened list, zero is silently returned. Be sure the Node in question is actually opened before checking the number of Viewers it has.
node
- The Node to get the count of NodeViewers for.public NodeViewer[] getViewers(Node node)
Returns the NodeViewers that have 'accepted' the specified Node, and are available to display the contents of the Node in the ContentView. These are the tabs showing along the bottom of the ContentView for the specified Node.
NOTE: If the passed Node is not in the ContentManager's opened list, a zero-length array is silently returned. Be sure the Node in question is actually opened before retrieving its NodeViewers.
node
- The Node to retrieve the NodeViewers for.public void setActiveViewer(Node node, NodeViewer viewer, boolean requestFocus) throws java.lang.Exception
Sets the active NodeViewer for the specified Node.
NOTE: If the passed Node is not opened in this Browser, calling this method will fire an AssertionException. A few Browser events will be triggered:
node
- The Node to set the specified NodeViewer onviewer
- The NodeViewer to display the specified node withrequestFocus
- True for the NodeViewer to request focus once activatedpublic NodeViewer getActiveViewer(Node node)
public MessageView getMessageView()
public StatusView getStatusView()
public ContentManager getContentManager()
public void addBrowserListener(BrowserListener l)
l
- The BrowserListener implementation to add the listener list.public void removeBrowserListener(BrowserListener l)
l
- The BrowserListener implementation to remove from listener list.public static void addStaticBrowserListener(BrowserListener l)
l
- The BrowserListener implementation to add the listener list.public static void removeStaticBrowserListener(BrowserListener l)
l
- The BrowserListener implementation to remove from listener list.protected void fireBrowserOpened()
protected void fireBrowserActivated()
protected void fireBrowserDeactivated()
protected void fireBrowserClosing() throws VetoException
protected void fireBrowserClosed()
protected void fireBrowserProjectActivated(Project project)
project
- The Browser's new 'active' Project. MAY BE NULL!protected void fireBrowserProjectClosed(Project project)
project
- The project that closed.protected void fireBrowserNodeActivated(Node node)
node
- The Browser's new 'active' Node. MAY BE NULL!protected void fireBrowserNodeClosed(Node node)
node
- The node that closed.protected void fireBrowserViewerActivated(Node node, NodeViewer viewer)
node
- The Node whose NodeViewer has changed.viewer
- The Node's new 'active' NodeViewer.protected void fireBrowserViewerDeactivating(Node node, NodeViewer viewer) throws VetoException
node
- The Node whose viewer is changing.viewer
- The Node's active NodeViewer.public void close() throws java.lang.Exception
public void setBounds(java.awt.Rectangle b)
public void addButton(ActionButton button)
public void removeButton(ActionButton button)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |