|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IViewManager
A view manager.
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 |
closeAboutView()
Close the about view. |
|
void |
closeCollectionView()
Close the collection view. |
|
void |
closeSplashScreen()
Close the splashscreen. |
|
void |
configureView(IView window,
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. |
|
boolean |
isTabMainComponent()
Indicate if the tab is the main component or not. |
|
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 |
setMainComponent(java.lang.Object component)
Set the main component of the main view. |
Method Detail |
---|
void addStateBarComponent(StateBarComponent component)
component
- The component to add to the statebar.void removeStateBarComponent(StateBarComponent component)
component
- The component to remove of to the statebar.void addStateBarListener(StateBarListener listener)
listener
- The listener to add.void removeStateBarListener(StateBarListener listener)
listener
- The listener to remove.java.util.List<StateBarComponent> getStateBarComponents()
java.util.List<TabComponent> getTabComponents()
void addTabComponent(TabComponent component)
component
- The tab to add.void removeTabComponent(TabComponent component)
component
- The tab to remove.boolean askUserForConfirmation(java.lang.String text, java.lang.String title)
text
- The question.title
- The title.
boolean askI18nUserForConfirmation(java.lang.String textKey, java.lang.String titleKey)
textKey
- The question key.titleKey
- The title key.
java.lang.String askUserForText(java.lang.String text)
text
- The text prompt.
void displayText(java.lang.String text)
text
- The text to display.void displayError(JThequeError error)
error
- The error to display.void displayI18nText(java.lang.String key)
key
- The internationalization key.java.lang.String chooseFile(org.jtheque.utils.io.SimpleFilter filter)
filter
- A file filter.
java.lang.String chooseDirectory()
void addConfigTabComponent(ConfigTabComponent component)
component
- The config tab component to add.void removeConfigTabComponent(ConfigTabComponent component)
component
- The config tab component to remove.void addConfigTabListener(ConfigTabListener listener)
listener
- The listener to add.void removeConfigTabListener(ConfigTabListener listener)
listener
- The listener to remove.void addTabListener(TabListener listener)
listener
- The listener to add.void removeTabListener(TabListener listener)
listener
- The listener to remove.java.util.List<ConfigTabComponent> getConfigTabComponents()
Views getViews()
WindowsConfiguration getConfigurations()
void execute(SimpleTask task)
task
- The task to execute.<T> T execute(Task<T> task)
T
- The type of return.task
- The task to execute.
void refresh(java.lang.Object c)
c
- The component to refresh.void displaySplashScreen()
void closeSplashScreen()
void setMainComponent(java.lang.Object component)
component
- The main component of the main view.void removeMainComponent(java.lang.Object component)
component
- The main component to remove.boolean isTabMainComponent()
java.lang.Object getMainComponent()
void displayMainView()
void displayAboutView()
void closeAboutView()
void displayChooseCollectionView()
void closeCollectionView()
ICollectionView getCollectionView()
ViewDefaults getViewDefaults()
void saveState(IView window, java.lang.String name)
window
- The window.name
- The name of the view.void configureView(IView window, java.lang.String name, int defaultWidth, int defaultHeight)
window
- The window to configure.name
- The name of the view.defaultWidth
- The default width of the view.defaultHeight
- The default height of the view.void displayPrimaryModuleList()
ViewDelegate getViewDelegate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |