|
||||||||||
| 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.JPanel
base.JFixedPanel
base.MenuField
public class MenuField
This class implements a single user interface element that can be selected by the user with the cursor up/down keys. Such a MenuField can contain a single line of text for functions, it can consist of combinations out of text lines and images for CD/DVD entries and others. So a MenuField is always used when there are horizontal lines of data where the user can choose from.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.BaselineResizeBehavior |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent |
|---|
TOOL_TIP_TEXT_KEY, 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 java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
MenuField(RecordInfo rInfo,
int id,
Color customColor)
Constructor for a MenuField that displays information about a scheduled recording of the internal VCR functionality |
|
MenuField(String text,
int id,
Color customColor,
boolean hasSubEntries)
Constructor for a MenuField that displays general information; this constructor is used e.g. |
|
MenuField(String text,
int id,
String albumdir,
boolean albumLevel,
Color customColor)
Constructor for a MenuField that display information about a CD |
|
MenuField(String text,
int id,
String trackdir,
Color customColor,
boolean hasSubEntries)
Constructor for a MenuField that display information about the contents of a CD |
|
| Method Summary | |
|---|---|
CDInfo |
getCDInfo()
Retrieves the CDInfo associated to a menu |
String |
getDir()
Retrieves the path in filesystem to data related to this menu item |
int |
getID()
Returns the unique identifier assigned to this menu item |
int |
getItemNum()
|
MediaInfo |
getMediaInfo()
Retrieves the MediaInfo associated to a menu |
RecordInfo |
getRecordInfo()
Retrieves the RecordInfo associated to a menu |
String |
getText()
Retrieves the text associated with a menu item. |
String |
getTitle()
Deprecated. duplicate of getText() |
TrackInfo |
getTrackInfo()
Retrieves the TrackInfo associated to a menu |
void |
setCDInfo(CDInfo copy)
Deprecated. TODO: modify the CD-related constructors so that the CDInfo object can be set there directly This method can be used only for menu item types that display CD (album or track) data, it can be used to set a full CDInfo structure to the menu |
void |
setDir(String dir)
Sets the full path to the directory where data related to the menu item are stored into |
void |
setItemNum(int itemNum)
|
void |
setMediaInfo(MediaInfo copy)
Deprecated. TODO: modify the Media-related constructors so that the MediaInfo object can be set there directly This method can be used only for menu item types that display media data, it can be used to set a full MediaInfo structure to the menu |
void |
setSelected(boolean selected)
Sets the selection and highlighting-state of this menu field. |
void |
setTrackInfo(TrackInfo copy)
Deprecated. TODO: modify the CD-related constructors so that the TrackInfo object can be set there directly This method can be used only for menu item types that display CD (album or track) data, it can be used to set a full TrackInfo structure to the menu |
| Methods inherited from class base.JFixedPanel |
|---|
getMaximumSize, getMinimumSize, getPreferredSize, getSize |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MenuField(RecordInfo rInfo,
int id,
Color customColor)
rInfo - object that contains the scheduled recording information to be displayed to
the userid - a unique identifier that can be used later to identify a selected MenuFieldcustomColor - color that has to be used for the labels when a MenuField is higlighted,
when null is set the default color for highlighted texts is used
public MenuField(String text,
int id,
String albumdir,
boolean albumLevel,
Color customColor)
text - the name of the album
the userid - a unique identifier that can be used later to identify a selected MenuFieldalbumdir - the storage position of that albumalbumLevel - currently unused, has to be removedcustomColor - color that has to be used for the labels when a MenuField is higlighted,
when null is set the default color for highlighted texts is used
public MenuField(String text,
int id,
String trackdir,
Color customColor,
boolean hasSubEntries)
text - the name of the track
the userid - a unique identifier that can be used later to identify a selected MenuFieldtrackdir - the storage position of that trackcustomColor - color that has to be used for the labels when a MenuField is higlighted,
when null is set the default color for highlighted texts is usedhasSubEntries - when this value is set to true a small arrow is displayed at the right
side of the MenuField that informs the user about sub-entries that will open when this
entry is selected (opening of these sub-entries has to be implemented by the main
application)
public MenuField(String text,
int id,
Color customColor,
boolean hasSubEntries)
text - the text for the menu
the userid - a unique identifier that can be used later to identify a selected MenuFieldcustomColor - color that has to be used for the labels when a MenuField is higlighted,
when null is set the default color for highlighted texts is usedhasSubEntries - when this value is set to true a small arrow is displayed at the right
side of the MenuField that informs the user about sub-entries that will open when this
entry is selected (opening of these sub-entries has to be implemented by the main
application)| Method Detail |
|---|
public RecordInfo getRecordInfo()
public void setItemNum(int itemNum)
public int getItemNum()
public TrackInfo getTrackInfo()
public void setCDInfo(CDInfo copy)
copy - the CDInfo object that has to be associated with this menu itempublic CDInfo getCDInfo()
public void setTrackInfo(TrackInfo copy)
copy - the TrackInfo object that has to be associated with this menu itempublic MediaInfo getMediaInfo()
public void setMediaInfo(MediaInfo copy)
copy - the MediaInfo object that has to be associated with this menu itempublic void setDir(String dir)
dir - the filesystem path to the storage locationpublic String getDir()
public int getID()
public String getText()
public void setSelected(boolean selected)
setSelected in class JFixedPanelselected - true when this item is selected and has to be highlighted,
false otherwisepublic String getTitle()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||