|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kemet.lf.GlobalKemet
public class GlobalKemet
GlobalKemet : it's the singleton of the framework. It stores all necessary informations about differents part of the framework.
Field Summary | |
---|---|
static java.awt.Color |
backgroundColorJMenu
background color for JMenu. |
static java.awt.Color |
backgroundColorMenuBar
background color for Menu Bar. |
Method Summary | |
---|---|
boolean |
add(KemetToolBar toolbar)
add a toolbar. |
void |
addBtDraggableFlavor(java.awt.datatransfer.DataFlavor btDraggableFlavor)
add META information about data of draggable button. |
java.lang.String |
getApplicationXMLFileName()
return name of configuration XML file. |
static java.awt.Color |
getBackgroundColorJMenu()
return the background color of JMenu. |
static java.awt.Color |
getBackgroundColorMenuBar()
return the background color of menu bar. |
java.util.ArrayList<java.awt.datatransfer.DataFlavor> |
getBtsDraggableFlavor()
return META informations about data from draggable buttons. |
javax.swing.JPanel |
getCentralPanel()
return the panel which contains window content. |
static java.util.Locale |
getCurrentLoc()
return the current localization. |
static GlobalKemet |
getInstance()
get the only one instance from GlobalKemet class. |
java.util.List<java.lang.Object[]> |
getMenu()
return the list of JMenu of application. |
static int |
getMinSizeFont()
return the minimal size of the current font. |
int |
getMinX()
return the minimal width of the current window. |
int |
getMinY()
return the minimal height of the current window. |
javax.swing.JLabel |
getMoveAutoWindow()
return the "move automatically toolbars by relation with main button" button. |
javax.swing.JLabel |
getMoveWindow()
return the "move toolbars with main button" button. |
PreferencesManager |
getMyPrefs()
return the user preferences manager. |
java.lang.String |
getOs()
return the operating system of user. |
static java.lang.String |
getPoliceName()
return the name of the police used by the application. |
int |
getPosX()
return the position (X) of the current window. |
int |
getPosY()
return the position (Y) of the current window. |
static int |
getResXMIN()
return the X min resolution. |
static int |
getResYMIN()
return the Y min resolution. |
javax.swing.JFrame |
getRootFrame()
return the root Kemet window. |
double[] |
getScreenRes()
return the resolution of the screen. |
java.util.HashMap |
getTargetList()
return list of target (which are contained in configuration XML file). |
int |
getToolBarCurrentNumber()
return the toolBar current number. |
javax.swing.JLabel |
getToolbarFlag()
return the showHide toolbars button. |
java.util.List<KemetToolBar> |
getToolBarList()
return the list of toolbars. |
int |
getWindowHeight()
return the height of the current window. |
int |
getWindowHeightTmp()
return the temporary height of the current window. |
int |
getWindowWidth()
return the width of the current window. |
int |
getWindowWidthTmp()
return the temporary width of the current window. |
void |
init()
load configuration XML file used by the application. |
boolean |
isCopyButtonFromButtonItself()
the copy button from itself (drop panel) is allowed ? |
boolean |
isFullScreen()
return if or not we are in fullscreen mode. |
boolean |
isSaveBeforeExit()
save the content of the application before leaving ? |
void |
setApplicationXMLFileName(java.lang.String applicationXMLFileName)
set name of configuration XML file. |
void |
setBtsDraggableFlavor(java.util.ArrayList<java.awt.datatransfer.DataFlavor> btsDraggableFlavor)
set META informations about data of draggable buttons. |
void |
setCentralPanel(javax.swing.JPanel centralPanel)
set the panel which contains window content. |
void |
setCopyButtonFromButtonItself(boolean copyButtonFromButtonItself)
set to true the copy button from itself (drop panel). |
static void |
setCurrentLoc(java.util.Locale currentLoc)
set the current localization. |
void |
setFullScreen(boolean fullScreen)
set the fullscreen mode. |
void |
setMenu(java.util.List<java.lang.Object[]> menu)
set the list of JMenu for application. |
void |
setMinX(int minX)
set the minimal width of the current window. |
void |
setMinY(int minY)
set the minimal height of the current window. |
void |
setMoveAutoWindow(javax.swing.JLabel moveAutoWindow)
set the "move automatically toolbars by relation with main button" button. |
void |
setMoveWindow(javax.swing.JLabel moveWindow)
set the "move toolbars with main button" button. |
static void |
setPoliceName(java.lang.String policeName)
set the name of the police used by the application. |
void |
setPosX(int posX)
set the position (X) of the current window. |
void |
setPosY(int posY)
set the position (Y) of the current window. |
void |
setRootFrame(javax.swing.JFrame rootFrame)
set the root Kemet window. |
void |
setSaveBeforeExit(boolean saveBeforeExit)
set to true or false the flag "save content of the application before leaving ?". |
void |
setToolbarFlag(javax.swing.JLabel toolbarFlag)
set the showHide toolbars button. |
void |
setToolBarList(java.util.List<KemetToolBar> toolBarList)
set the list of toolbars. |
void |
setWindowHeight(int windowHeight)
set the height of the current window. |
void |
setWindowHeightTmp(int windowHeightTmp)
set the temporary height of the current window. |
void |
setWindowWidth(int windowWidth)
set the width of the current window. |
void |
setWindowWidthTmp(int windowWidthTmp)
set the temporary width of the current window. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.awt.Color backgroundColorJMenu
background color for JMenu.
public static final java.awt.Color backgroundColorMenuBar
background color for Menu Bar.
Method Detail |
---|
public static GlobalKemet getInstance() throws ExceptionManager
get the only one instance from GlobalKemet class.
ExceptionManager
public void init() throws ExceptionManager
load configuration XML file used by the application.
ExceptionManager
public java.util.ArrayList<java.awt.datatransfer.DataFlavor> getBtsDraggableFlavor()
return META informations about data from draggable buttons.
public void setBtsDraggableFlavor(java.util.ArrayList<java.awt.datatransfer.DataFlavor> btsDraggableFlavor)
set META informations about data of draggable buttons.
btsDraggableFlavor
- META informations about data from draggable buttonspublic void addBtDraggableFlavor(java.awt.datatransfer.DataFlavor btDraggableFlavor) throws ExceptionManager
add META information about data of draggable button.
btDraggableFlavor
- META information about data from draggable button
ExceptionManager
public java.lang.String getApplicationXMLFileName()
return name of configuration XML file.
public void setApplicationXMLFileName(java.lang.String applicationXMLFileName)
set name of configuration XML file.
applicationXMLFileName
- name of configuration XML filepublic java.util.HashMap getTargetList()
return list of target (which are contained in configuration XML file).
public java.util.List<java.lang.Object[]> getMenu()
return the list of JMenu of application.
public void setMenu(java.util.List<java.lang.Object[]> menu)
set the list of JMenu for application.
menu
- list of JMenu for applicationpublic java.lang.String getOs()
return the operating system of user.
public boolean isSaveBeforeExit()
save the content of the application before leaving ?
public void setSaveBeforeExit(boolean saveBeforeExit)
set to true or false the flag "save content of the application before leaving ?".
saveBeforeExit
- true / falsepublic javax.swing.JFrame getRootFrame()
return the root Kemet window.
public void setRootFrame(javax.swing.JFrame rootFrame)
set the root Kemet window.
rootFrame
- root Kemet windowpublic javax.swing.JPanel getCentralPanel()
return the panel which contains window content.
public void setCentralPanel(javax.swing.JPanel centralPanel)
set the panel which contains window content.
centralPanel
- panel which contains window contentpublic int getWindowWidth()
return the width of the current window.
public void setWindowWidth(int windowWidth)
set the width of the current window.
windowWidth
- width of the current windowpublic int getWindowHeight()
return the height of the current window.
public void setWindowHeight(int windowHeight)
set the height of the current window.
windowHeight
- height of the current windowpublic int getMinX()
return the minimal width of the current window.
public void setMinX(int minX)
set the minimal width of the current window.
minX
- minimal width of the current windowpublic int getMinY()
return the minimal height of the current window.
public void setMinY(int minY)
set the minimal height of the current window.
minY
- minimal height of the current windowpublic int getPosX()
return the position (X) of the current window.
public void setPosX(int posX)
set the position (X) of the current window.
posX
- position (X) of the current windowpublic int getPosY()
return the position (Y) of the current window.
public void setPosY(int posY)
set the position (Y) of the current window.
posY
- position (Y) of the current windowpublic int getWindowWidthTmp()
return the temporary width of the current window.
public void setWindowWidthTmp(int windowWidthTmp)
set the temporary width of the current window.
windowWidthTmp
- temporary width of the current windowpublic int getWindowHeightTmp()
return the temporary height of the current window.
public void setWindowHeightTmp(int windowHeightTmp)
set the temporary height of the current window.
windowHeightTmp
- temporary height of the current windowpublic static java.lang.String getPoliceName()
return the name of the police used by the application.
public static void setPoliceName(java.lang.String policeName)
set the name of the police used by the application.
policeName
- name of the police used by the applicationpublic static java.awt.Color getBackgroundColorJMenu()
return the background color of JMenu.
public static java.awt.Color getBackgroundColorMenuBar()
return the background color of menu bar.
public static int getMinSizeFont()
return the minimal size of the current font.
public boolean isCopyButtonFromButtonItself()
the copy button from itself (drop panel) is allowed ?
public void setCopyButtonFromButtonItself(boolean copyButtonFromButtonItself)
set to true the copy button from itself (drop panel).
copyButtonFromButtonItself
- true / falsepublic static java.util.Locale getCurrentLoc()
return the current localization.
public static void setCurrentLoc(java.util.Locale currentLoc)
set the current localization.
currentLoc
- the currentLoc to setpublic java.util.List<KemetToolBar> getToolBarList()
return the list of toolbars.
public void setToolBarList(java.util.List<KemetToolBar> toolBarList)
set the list of toolbars.
toolBarList
- list of toolbarspublic boolean add(KemetToolBar toolbar)
add a toolbar.
toolbar
- toolbar to add
public int getToolBarCurrentNumber()
return the toolBar current number.
public void setToolbarFlag(javax.swing.JLabel toolbarFlag)
set the showHide toolbars button.
toolbarFlag
- the showHide toolbars buttonpublic javax.swing.JLabel getToolbarFlag()
return the showHide toolbars button.
public double[] getScreenRes()
return the resolution of the screen.
public static int getResXMIN()
return the X min resolution.
public static int getResYMIN()
return the Y min resolution.
public PreferencesManager getMyPrefs()
return the user preferences manager.
public javax.swing.JLabel getMoveWindow()
return the "move toolbars with main button" button.
public void setMoveWindow(javax.swing.JLabel moveWindow)
set the "move toolbars with main button" button.
moveWindow
- "move toolbars with main button" buttonpublic javax.swing.JLabel getMoveAutoWindow()
return the "move automatically toolbars by relation with main button" button.
public void setMoveAutoWindow(javax.swing.JLabel moveAutoWindow)
set the "move automatically toolbars by relation with main button" button.
moveAutoWindow
- "move automatically toolbars by relation with main button"
buttonpublic boolean isFullScreen()
return if or not we are in fullscreen mode.
public void setFullScreen(boolean fullScreen)
set the fullscreen mode.
fullScreen
- true / false
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |