|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.yospace.yae.yogi.YogiComponent
|
+--com.yospace.yae.yogi.YogiTitleBar
A title bar component which functions as a container for a title, and buttons to fire minimize, maximize and exit tasks.
| Field Summary | |
static int |
PROPERTY_COMPACT_BUTTON
Constant for the compact button property |
static int |
PROPERTY_EXIT_BUTTON
Constant for the exit button property |
static int |
PROPERTY_MAXIMIZE_BUTTON
Constant for the maxmimze button property |
static int |
PROPERTY_MINIMIZE_BUTTON
Constant for the minimize button property |
static int |
PROPERTY_TITLE_LABEL
Constant for the title label property |
| Constructor Summary | |
YogiTitleBar()
Calls YogiTitleBar(String) with an empty name as the
argument. |
|
YogiTitleBar(java.lang.String title)
Sets up new title bar with the given title. |
|
| Method Summary | |
void |
addCompactButton(ActionListener al)
Adds a compact button to the title bar and sets its action listener to be the one provided. |
void |
addExitButton(ActionListener al)
Adds an exit button to the title bar and sets its action listener to be the one provided. |
void |
addMaximizeButton(ActionListener al)
Adds a maximize button to the title bar and sets its action listener to be the one provided. |
void |
addMinimizeButton(ActionListener al)
Adds a minimize button to the title bar and sets its action listener to be the one provided. |
YogiButton |
getCompactButton()
Accessor method for the compact button. |
YogiButton |
getExitButton()
Accessor method for the exit button. |
YogiButton |
getMaximizeButton()
Accessor method for the maximize button. |
YogiButton |
getMinimizeButton()
Accessor method for the minimize button. |
java.lang.String |
getTitle()
Accessor method for the title String. |
void |
setCompactButton(YogiButton compactButton)
Sets the compact button of this title bar. |
void |
setExitButton(YogiButton exitButton)
Sets the exit button of this title bar. |
void |
setMaximizeButton(YogiButton maximizeButton)
Sets the maximize button of this title bar. |
void |
setMinimizeButton(YogiButton minimizeButton)
Sets the minimize button of this title bar. |
void |
setTitle(java.lang.String title)
Sets the title of this title bar. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int PROPERTY_MINIMIZE_BUTTON
public static final int PROPERTY_COMPACT_BUTTON
public static final int PROPERTY_MAXIMIZE_BUTTON
public static final int PROPERTY_EXIT_BUTTON
public static final int PROPERTY_TITLE_LABEL
| Constructor Detail |
public YogiTitleBar()
YogiTitleBar(String) with an empty name as the
argument.public YogiTitleBar(java.lang.String title)
title - the title for this title bar to have.| Method Detail |
public YogiButton getMinimizeButton()
public void setMinimizeButton(YogiButton minimizeButton)
PROPERTY_MINIMIZE_BUTTON change event to be fired.minimizeButton - the button to use as this title bar's minimize button.public void addMinimizeButton(ActionListener al)
al - the action listener to associate with the new button.public YogiButton getCompactButton()
public void setCompactButton(YogiButton compactButton)
PROPERTY_COMPACT_BUTTON change event to be fired.compactButton - the button to use as this title bar's compact button.public void addCompactButton(ActionListener al)
al - the action listener to associate with the new button.public YogiButton getMaximizeButton()
public void setMaximizeButton(YogiButton maximizeButton)
PROPERTY_MAXIMIZE_BUTTON change event to be fired.maximizeButton - the button to use as this title bar's maximize button.public void addMaximizeButton(ActionListener al)
al - the action listener to associate with the new button.public YogiButton getExitButton()
public void setExitButton(YogiButton exitButton)
PROPERTY_EXIT_BUTTON change event to be fired.exitButton - the button to use as this title bar's exit button.public void addExitButton(ActionListener al)
al - the action listener to associate with the new button.public java.lang.String getTitle()
public void setTitle(java.lang.String title)
If the value changes, the component is repainted and a PROPERTY_TITLE_LABEL change event
is fired.
title - the String to use as this title bar's label String.
|
Copyright 2002 Yospace Holdings Ltd. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||