|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jtheque.core.managers.view.impl.SwingViewDelegate
public final class SwingViewDelegate
Constructor Summary | |
---|---|
SwingViewDelegate()
|
Method Summary | |
---|---|
void |
applyGlassPane(java.lang.Object component)
Apply the glass pane. |
java.lang.String |
askText(java.lang.String text)
Ask the user for text. |
boolean |
askYesOrNo(java.lang.String text,
java.lang.String title)
Ask the user for a yes or no answer. |
java.lang.String |
chooseDirectory()
Choose a directory. |
java.lang.String |
chooseFile(org.jtheque.utils.io.SimpleFilter filter)
Choose a file. |
void |
configure(WindowConfiguration configuration,
IView view)
Configure the view with the window configuration. |
void |
displayError(JThequeError error)
Display an error. |
void |
displayText(java.lang.String text)
Display the text. |
void |
fill(WindowConfiguration configuration,
IView view)
Fill the configuration with the view informations. |
void |
refresh(java.lang.Object c)
Refresh the object. |
void |
run(java.lang.Runnable runnable)
Run the runnable in the view. |
void |
setSize(IView view,
int defaultWidth,
int defaultHeight)
Set size of the view considering the configuration of the view. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SwingViewDelegate()
Method Detail |
---|
public boolean askYesOrNo(java.lang.String text, java.lang.String title)
ViewDelegate
askYesOrNo
in interface ViewDelegate
text
- The question.title
- The question title.
public void displayError(JThequeError error)
ViewDelegate
displayError
in interface ViewDelegate
error
- The error to display.public void displayText(java.lang.String text)
ViewDelegate
displayText
in interface ViewDelegate
text
- The text to display.public java.lang.String chooseFile(org.jtheque.utils.io.SimpleFilter filter)
ViewDelegate
chooseFile
in interface ViewDelegate
filter
- The filter.
public java.lang.String chooseDirectory()
ViewDelegate
chooseDirectory
in interface ViewDelegate
public void run(java.lang.Runnable runnable)
ViewDelegate
run
in interface ViewDelegate
runnable
- The runnable to run in the view.public void refresh(java.lang.Object c)
ViewDelegate
refresh
in interface ViewDelegate
c
- The object to refresh.public void applyGlassPane(java.lang.Object component)
ViewDelegate
applyGlassPane
in interface ViewDelegate
component
- The glass pane.public void setSize(IView view, int defaultWidth, int defaultHeight)
ViewDelegate
setSize
in interface ViewDelegate
view
- The view to configure. ̀defaultWidth
- The default width of the view.defaultHeight
- The default height of the view.public void fill(WindowConfiguration configuration, IView view)
ViewDelegate
fill
in interface ViewDelegate
configuration
- The configuration to fill.view
- The view to fill the configuration with.public void configure(WindowConfiguration configuration, IView view)
ViewDelegate
configure
in interface ViewDelegate
configuration
- The window configuration.view
- The view to configure.public java.lang.String askText(java.lang.String text)
ViewDelegate
askText
in interface ViewDelegate
text
- The question to ask to the user.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |