|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JToolBar
org.ceryle.ui.LocationBar
public class LocationBar
A class that provides a Location ToolBar similar to a web browser. This manages its own internal list.
| Nested Class Summary | |
|---|---|
class |
LocationBar.KeyHandler
|
| Nested classes/interfaces inherited from class javax.swing.JToolBar |
|---|
JToolBar.AccessibleJToolBar, JToolBar.Separator |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected static int |
maxHistoryLength
Ceryle property determining the number of history items to save. |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.SwingConstants |
|---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
LocationBar(Desktop desktop)
Constructor with a reference to the parent Desktop. |
|
| Method Summary | |
|---|---|
void |
clearLocField()
Clears content of location field. |
int |
getItemCount()
Returns the number of items currently stored in the location field. |
Iterator |
getLocationHistory()
Returns an Iterator over the contents of the location history (as Strings). |
String |
getLocationValue()
Returns the text content of the location field as a String. |
protected boolean |
isActiveRequests()
Returns true if helper applications are requested on loading new values. |
boolean |
isSearchVisible()
Returns true if the search field is visible. |
protected void |
setActiveRequests(boolean active)
When the parameter is true, location bar requests are sent to helper applications. |
void |
setHistoryLength(int length)
Sets the maximum number of items allowed in the history list (before it is auto-trimmed). |
protected void |
setLocationField(String uri)
Sets the text content of the location field to the String uri. |
void |
setLocationHistory(SetModel history)
Sets the history list to that provided by the SetModel history, replacing any previous contents. |
protected void |
setSearchModel(ComboBoxModel model)
Set the model for the search combobox to model. |
void |
setSearchVisible(boolean visible)
Sets the visibility of the search field to the provided value. |
String |
toString()
Return the contents of the LocationBar as a String. |
| Methods inherited from class javax.swing.JToolBar |
|---|
add, addImpl, addSeparator, addSeparator, createActionChangeListener, createActionComponent, getAccessibleContext, getComponentAtIndex, getComponentIndex, getMargin, getOrientation, getUI, getUIClassID, isBorderPainted, isFloatable, isRollover, paintBorder, paramString, setBorderPainted, setFloatable, setLayout, setMargin, setOrientation, setRollover, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static int maxHistoryLength
| Constructor Detail |
|---|
public LocationBar(Desktop desktop)
| Method Detail |
|---|
protected void setActiveRequests(boolean active)
protected boolean isActiveRequests()
protected void setSearchModel(ComboBoxModel model)
public void setHistoryLength(int length)
public int getItemCount()
public String getLocationValue()
protected void setLocationField(String uri)
public boolean isSearchVisible()
public void setSearchVisible(boolean visible)
public void clearLocField()
public Iterator getLocationHistory()
public void setLocationHistory(SetModel history)
public String toString()
toString in class Component
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||