|
|||||||||
| 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
|
+--Help.Help
This is the class that provides the frame in which we draw the help.
| Field Summary | |
protected boolean |
helpFileProblem
This is a boolean to know if the help file has been correctly read or not. |
protected boolean |
helpFrameOpen
We can know if the frame is open or not. |
protected HelpImageCanvas |
helpImageCanvas
The canvas in which we draw the image. |
protected Panel |
indexNorthPanel
The panel that contains the main menu index and its label. |
protected Panel |
indexPanel
The panel that contains the indexes. |
protected Panel |
indexSouthPanel
The panel that contains the sub menu index and its label. |
protected List |
mainIndex
The menu list. |
protected ActionListener |
mainIndexActionListener
Actionlistener for the menu list. |
protected Panel |
mainPanel
The panel that contains the image and the index. |
protected MyMenu[] |
menu
The structure in which there is the help. |
protected Label |
menuIndex
The label for the menu list. |
protected Panel |
menuIndexPanel
The panel that contains the main menu index. |
protected String |
problemString
This is a string to tell the user what's wrong with the help file. |
protected List |
subIndex
The sub menu list |
protected ActionListener |
subIndexActionListener
Actionlistener for the sub menu list. |
protected Label |
subMenuIndex
The label for the sub menu list. |
protected Panel |
subMenuIndexPanel
The panel that contains the sub menu index. |
protected TextArea |
textArea
The area in which we draw the help. |
| 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 | |
Help(String fileName)
The main constructor. |
|
Help(URL fileName)
The main constructor. |
|
| Method Summary | |
boolean |
helpFrameOpen()
If the help frame is open or not. |
void |
init()
Init of our frame used when we have a nullpointerexception. |
void |
init(Image image)
Init of our frame. |
protected void |
initActionListener()
This method init the different action listener of the lists. |
protected void |
initListsItems()
We create the title in the main menu. |
MyMenu[] |
menu()
This method returns the structures of all the different menus. |
protected MyMenu[] |
readStructure(String fileName)
This method read the structure of a help file that has been parsed by the HelpFileParser. |
protected MyMenu[] |
readStructure(URL fileName)
This method read the structure of a help file that has been parsed by the HelpFileParser. |
void |
setText(String string)
This method set a help message on the TextArea with a specified color. |
void |
start()
This method show the frame with the right size. |
void |
updateSubList(int index)
This method updates the sublist with the right menu. |
void |
updateSubText(int menuIndex,
int subMenuIndex)
This method display the help message corresponding to the sub title that the user has clicked on. |
void |
windowActivated(WindowEvent e)
When you activate the window. |
void |
windowClosed(WindowEvent e)
When you close the window. |
void |
windowClosing(WindowEvent e)
To close the window. |
void |
windowDeactivated(WindowEvent e)
When you deactivate the window. |
void |
windowDeiconified(WindowEvent e)
When you deiconify the window. |
void |
windowIconified(WindowEvent e)
When you iconify the window. |
void |
windowOpened(WindowEvent e)
When you open the window. |
| Methods inherited from class java.awt.Frame |
addNotify,
finalize,
getCursorType,
getFrames,
getIconImage,
getMenuBar,
getState,
getTitle,
isResizable,
paramString,
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,
isShowing,
pack,
postEvent,
processEvent,
processWindowEvent,
removeWindowListener,
show,
toBack,
toFront |
| Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
addImpl,
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,
remove,
removeAll,
removeContainerListener,
setFont,
setLayout,
update,
validate,
validateTree |
| Methods inherited from class java.lang.Object |
clone,
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
protected List mainIndex
protected List subIndex
protected TextArea textArea
protected MyMenu[] menu
protected Label menuIndex
protected Label subMenuIndex
protected Panel indexPanel
protected Panel mainPanel
protected Panel indexNorthPanel
protected Panel menuIndexPanel
protected Panel indexSouthPanel
protected Panel subMenuIndexPanel
protected ActionListener mainIndexActionListener
protected ActionListener subIndexActionListener
protected HelpImageCanvas helpImageCanvas
protected boolean helpFrameOpen
protected boolean helpFileProblem
protected String problemString
| Constructor Detail |
public Help(URL fileName)
fileName - The fileName of the help file.HelpFileParserpublic Help(String fileName)
fileName - The fileName of the help file.HelpFileParser| Method Detail |
public void init(Image image)
image - The image that we will display in our frame.public void init()
public void start()
protected void initActionListener()
protected void initListsItems()
public void updateSubList(int index)
index - The number of the menu that the user has clicked on.
public void updateSubText(int menuIndex,
int subMenuIndex)
menuIndex - The main menu index.subMenuIndex - The index of the sub menu the user has clicked on.protected MyMenu[] readStructure(String fileName)
fileName - The name of the file we want to get the structure.HelpFileParser,
MyMenuprotected MyMenu[] readStructure(URL fileName)
fileName - The name of the file we want to get the structure.HelpFileParser,
MyMenupublic void setText(String string)
string - The help message.color - The color of the help message.public MyMenu[] menu()
MyMenupublic boolean helpFrameOpen()
public void windowClosing(WindowEvent e)
e - The window event.public void windowOpened(WindowEvent e)
e - The window event.public void windowIconified(WindowEvent e)
e - The window event.public void windowDeiconified(WindowEvent e)
e - The window event.public void windowDeactivated(WindowEvent e)
e - The window event.public void windowClosed(WindowEvent e)
e - The window event.public void windowActivated(WindowEvent e)
e - The window event.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||