|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jtheque.core.managers.AbstractManager org.jtheque.core.managers.view.ViewManager
public final class ViewManager
A view manager implementation.
Constructor Summary | |
---|---|
ViewManager()
Construct a new ViewManager. |
Method Summary | ||
---|---|---|
void |
addConfigTabComponent(ConfigTabComponent component)
Add config tab component. |
|
void |
addConfigTabListener(ConfigTabListener listener)
Add a ConfigTabListener. |
|
void |
addStateBarComponent(StateBarComponent component)
Add a statebar component. |
|
void |
addStateBarListener(StateBarListener listener)
Add a statebar listener. |
|
void |
addTabComponent(TabComponent component)
Add a tab component. |
|
void |
addTabListener(TabListener listener)
Add a TabListener. |
|
boolean |
askI18nUserForConfirmation(java.lang.String textKey,
java.lang.String titleKey)
Ask the user for confirmation with internationalized message. |
|
boolean |
askUserForConfirmation(java.lang.String text,
java.lang.String title)
Ask user for confirmation. |
|
java.lang.String |
askUserForText(java.lang.String text)
Ask the user for a text. |
|
java.lang.String |
chooseDirectory()
Choose a directory. |
|
java.lang.String |
chooseFile(org.jtheque.utils.io.SimpleFilter filter)
Choose a file. |
|
void |
close()
Close the manager. |
|
void |
closeAboutView()
Close the about view. |
|
void |
closeCollectionView()
Close the collection view. |
|
void |
closeSplashScreen()
Close the splashscreen. |
|
void |
configureView(IView view,
java.lang.String name,
int defaultWidth,
int defaultHeight)
Configure a view. |
|
void |
displayAboutView()
Display the about view. |
|
void |
displayChooseCollectionView()
Display the choose collection view. |
|
void |
displayError(JThequeError error)
Display an error. |
|
void |
displayI18nText(java.lang.String key)
Display a internationalized. |
|
void |
displayMainView()
Display the main view. |
|
void |
displayPrimaryModuleList()
Display the primary module list. |
|
void |
displaySplashScreen()
Display the splashscreen. |
|
void |
displayText(java.lang.String text)
Display a text. |
|
void |
execute(SimpleTask task)
Execute a task in the EDT. |
|
|
execute(Task<T> task)
Execute a task in the EDT. |
|
ICollectionView |
getCollectionView()
Return the collection view. |
|
java.util.List<ConfigTabComponent> |
getConfigTabComponents()
Return all the config tab components. |
|
WindowsConfiguration |
getConfigurations()
Return all window configuration. |
|
java.lang.Object |
getMainComponent()
Return the main component. |
|
java.util.List<StateBarComponent> |
getStateBarComponents()
Return all the statebar components. |
|
java.util.List<TabComponent> |
getTabComponents()
Return all the tab components. |
|
ViewDefaults |
getViewDefaults()
Return the view defaults. |
|
ViewDelegate |
getViewDelegate()
Return the delegate view manager. |
|
Views |
getViews()
Return the Views. |
|
void |
init()
Init the manager. |
|
boolean |
isTabMainComponent()
Indicate if the tab is the main component or not. |
|
void |
preInit()
Pre-init the manager. |
|
void |
refresh(java.lang.Object c)
Refresh the component. |
|
void |
removeConfigTabComponent(ConfigTabComponent component)
Remove the specified config tab component. |
|
void |
removeConfigTabListener(ConfigTabListener listener)
Remove the specified ConfigTabListener. |
|
void |
removeMainComponent(java.lang.Object component)
Remove the main component of the main view. |
|
void |
removeStateBarComponent(StateBarComponent component)
Remove the specified statebar component. |
|
void |
removeStateBarListener(StateBarListener listener)
Remove a statebar listener. |
|
void |
removeTabComponent(TabComponent component)
Remove a tab component. |
|
void |
removeTabListener(TabListener listener)
Remove the specified TabListener. |
|
void |
saveState(IView window,
java.lang.String name)
Save the current state of the window. |
|
void |
setConfigPanels(java.util.Collection<ConfigTabComponent> configPanels)
Set the config panels. |
|
void |
setMainComponent(java.lang.Object component)
Set the main component of the main view. |
|
void |
setViewDefaults(ViewDefaults viewDefaults)
Set the view defaults. |
|
void |
setViewDelegate(ViewDelegate viewDelegate)
Set the view delegate. |
Methods inherited from class org.jtheque.core.managers.AbstractManager |
---|
getErrors, getListeners, getLogger, getMessage, getMessage, getStates |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ViewManager()
Method Detail |
---|
public void preInit()
IManager
preInit
in interface IManager
public void displaySplashScreen()
IViewManager
displaySplashScreen
in interface IViewManager
public void displayPrimaryModuleList()
IViewManager
displayPrimaryModuleList
in interface IViewManager
public void displayAboutView()
IViewManager
displayAboutView
in interface IViewManager
public void saveState(IView window, java.lang.String name)
IViewManager
saveState
in interface IViewManager
window
- The window.name
- The name of the view.public void configureView(IView view, java.lang.String name, int defaultWidth, int defaultHeight)
IViewManager
configureView
in interface IViewManager
view
- The window to configure.name
- The name of the view.defaultWidth
- The default width of the view.defaultHeight
- The default height of the view.public void closeAboutView()
IViewManager
closeAboutView
in interface IViewManager
public void displayChooseCollectionView()
IViewManager
displayChooseCollectionView
in interface IViewManager
public void closeCollectionView()
IViewManager
closeCollectionView
in interface IViewManager
public void closeSplashScreen()
IViewManager
closeSplashScreen
in interface IViewManager
public void setMainComponent(java.lang.Object component)
IViewManager
setMainComponent
in interface IViewManager
component
- The main component of the main view.public void removeMainComponent(java.lang.Object component)
IViewManager
removeMainComponent
in interface IViewManager
component
- The main component to remove.public boolean isTabMainComponent()
IViewManager
isTabMainComponent
in interface IViewManager
public java.lang.Object getMainComponent()
IViewManager
getMainComponent
in interface IViewManager
public void close()
IManager
close
in interface IManager
public void init()
IManager
init
in interface IManager
public WindowsConfiguration getConfigurations()
IViewManager
getConfigurations
in interface IViewManager
public Views getViews()
IViewManager
getViews
in interface IViewManager
public void addStateBarComponent(StateBarComponent component)
IViewManager
addStateBarComponent
in interface IViewManager
component
- The component to add to the statebar.public void removeStateBarComponent(StateBarComponent component)
IViewManager
removeStateBarComponent
in interface IViewManager
component
- The component to remove of to the statebar.public java.util.List<StateBarComponent> getStateBarComponents()
IViewManager
getStateBarComponents
in interface IViewManager
public void addTabComponent(TabComponent component)
IViewManager
addTabComponent
in interface IViewManager
component
- The tab to add.public void removeTabComponent(TabComponent component)
IViewManager
removeTabComponent
in interface IViewManager
component
- The tab to remove.public java.util.List<TabComponent> getTabComponents()
IViewManager
getTabComponents
in interface IViewManager
public void addConfigTabComponent(ConfigTabComponent component)
IViewManager
addConfigTabComponent
in interface IViewManager
component
- The config tab component to add.public void removeConfigTabComponent(ConfigTabComponent component)
IViewManager
removeConfigTabComponent
in interface IViewManager
component
- The config tab component to remove.public java.util.List<ConfigTabComponent> getConfigTabComponents()
IViewManager
getConfigTabComponents
in interface IViewManager
public boolean askUserForConfirmation(java.lang.String text, java.lang.String title)
IViewManager
askUserForConfirmation
in interface IViewManager
text
- The question.title
- The title.
public boolean askI18nUserForConfirmation(java.lang.String textKey, java.lang.String titleKey)
IViewManager
askI18nUserForConfirmation
in interface IViewManager
textKey
- The question key.titleKey
- The title key.
public java.lang.String askUserForText(java.lang.String text)
IViewManager
askUserForText
in interface IViewManager
text
- The text prompt.
public void displayText(java.lang.String text)
IViewManager
displayText
in interface IViewManager
text
- The text to display.public java.lang.String chooseFile(org.jtheque.utils.io.SimpleFilter filter)
IViewManager
chooseFile
in interface IViewManager
filter
- A file filter.
public java.lang.String chooseDirectory()
IViewManager
chooseDirectory
in interface IViewManager
public void displayI18nText(java.lang.String key)
IViewManager
displayI18nText
in interface IViewManager
key
- The internationalization key.public void addStateBarListener(StateBarListener listener)
IViewManager
addStateBarListener
in interface IViewManager
listener
- The listener to add.public void removeStateBarListener(StateBarListener listener)
IViewManager
removeStateBarListener
in interface IViewManager
listener
- The listener to remove.public void addConfigTabListener(ConfigTabListener listener)
IViewManager
addConfigTabListener
in interface IViewManager
listener
- The listener to add.public void removeConfigTabListener(ConfigTabListener listener)
IViewManager
removeConfigTabListener
in interface IViewManager
listener
- The listener to remove.public void addTabListener(TabListener listener)
IViewManager
addTabListener
in interface IViewManager
listener
- The listener to add.public void removeTabListener(TabListener listener)
IViewManager
removeTabListener
in interface IViewManager
listener
- The listener to remove.public void displayError(JThequeError error)
IViewManager
displayError
in interface IViewManager
error
- The error to display.public void displayMainView()
IViewManager
displayMainView
in interface IViewManager
public ViewDelegate getViewDelegate()
IViewManager
getViewDelegate
in interface IViewManager
public void execute(SimpleTask task)
IViewManager
execute
in interface IViewManager
task
- The task to execute.public <T> T execute(Task<T> task)
IViewManager
execute
in interface IViewManager
T
- The type of return.task
- The task to execute.
public void refresh(java.lang.Object c)
IViewManager
refresh
in interface IViewManager
c
- The component to refresh.public ICollectionView getCollectionView()
IViewManager
getCollectionView
in interface IViewManager
public ViewDefaults getViewDefaults()
IViewManager
getViewDefaults
in interface IViewManager
public void setConfigPanels(java.util.Collection<ConfigTabComponent> configPanels)
configPanels
- A collection containing all the config tab components.public void setViewDelegate(ViewDelegate viewDelegate)
viewDelegate
- The view delegate implementation.public void setViewDefaults(ViewDefaults viewDefaults)
viewDefaults
- The view defaults.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |