Extension SDK

oracle.ide.controls
Interface StatusBar

All Known Implementing Classes:
StatusBarControl

public interface StatusBar

StatusBar interface of the Ide. The StatusBar provides a Toolbar where clients can add their own actions. This is generally done as follows: final IdeAction a = IdeAction.get( MY_CMD_ID, ... ); a.setController( myController ); Ide.getMainWindow().getStatusBar().getToolbar().add( a );


Method Summary
 void add(javax.swing.JComponent label)
          Adds a JComponent to the StatusBar.
 void add(javax.swing.JComponent label, int index)
          Adds a JComponent to the StatusBar.
 javax.swing.JComponent getGUI()
          Gets the Component
 java.lang.String getText()
          Gets the text of the StatusBar
 Toolbar getToolbar()
          Return the status bar toolbar.
 boolean isExpandable(javax.swing.JComponent comp)
          Return true if the JComponent in the StatusBar should expand to fill extra space beyond its minimum.
 void remove(javax.swing.JComponent comp)
          Remove component from status bar.
 void setExpandable(javax.swing.JComponent comp, boolean expandable)
          Specify whether or not a JComponent in the StatusBar should expand to fill extra space beyond its minimum.
 void setText(java.lang.String text)
          Sets the text of the StatusBar
 

Method Detail

setText

public void setText(java.lang.String text)
Sets the text of the StatusBar

Parameters:
text - The Text to set

getText

public java.lang.String getText()
Gets the text of the StatusBar

Returns:
The text

getGUI

public javax.swing.JComponent getGUI()
Gets the Component


add

public void add(javax.swing.JComponent label)
Adds a JComponent to the StatusBar.

Parameters:
label - the new JComponent to be added.

add

public void add(javax.swing.JComponent label,
                int index)
Adds a JComponent to the StatusBar.

Parameters:
label - the new JLabel to be added
index - the index at which the new label will be added

remove

public void remove(javax.swing.JComponent comp)
Remove component from status bar.


setExpandable

public void setExpandable(javax.swing.JComponent comp,
                          boolean expandable)
Specify whether or not a JComponent in the StatusBar should expand to fill extra space beyond its minimum.

See Also:
isExpandable(javax.swing.JComponent)

isExpandable

public boolean isExpandable(javax.swing.JComponent comp)
Return true if the JComponent in the StatusBar should expand to fill extra space beyond its minimum.

See Also:
setExpandable(javax.swing.JComponent, boolean)

getToolbar

public Toolbar getToolbar()
Return the status bar toolbar. Initially, this toolbar is empty. Client should add their tools to the toolbar.


Extension SDK

 

Copyright ©1997, 2003, Oracle. All rights reserved.