java.lang.Object
org.jpo.gui.swing.PictureFrame
Class that manages the frame and display of the Picture. Where the Picture Viewer
is concerned with which node to show, the PictureFrame handles all aspects of showing
the picture.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
moves the info display to the next panel and requests focus into the windowReturns the description that the user could have modifiedReturns the Component of the Description Text Area so that others can attach a FocusListener to it.Provides direct access to the panel that shows the picture.Provides direct access to the navButtonPanelReturns the resizeable frame objectvoid
getRid()
Gets rid of the frame.void
void
setDescription
(String newDescription) Sets the description to the supplied string.void
setProgressBarValue
(int value) Passes the parameter to the setValue method of the ProgressBarvoid
setProgressBarVisible
(boolean visible) Passes the parameter to the setVisible method of the ProgressBarvoid
void
The location and size of the Window can be changed by a call to this method
-
Constructor Details
-
PictureFrame
public PictureFrame()Constructor. Initialises the GUI widgets.
-
-
Method Details
-
getPictureController
Provides direct access to the panel that shows the picture.- Returns:
- the Picture Controller
-
getFocussableDescriptionField
Returns the Component of the Description Text Area so that others can attach a FocusListener to it.- Returns:
- Component of the Description Text Area
-
getDescription
Returns the description that the user could have modified- Returns:
- the description
-
setDescription
Sets the description to the supplied string.- Parameters:
newDescription
- The new description to be shown
-
switchWindowMode
The location and size of the Window can be changed by a call to this method- Parameters:
newMode
- new mode
-
getRid
public void getRid()Gets rid of the frame. -
getResizableJFrame
Returns the resizeable frame object- Returns:
- the frame object
-
setProgressBarVisible
public void setProgressBarVisible(boolean visible) Passes the parameter to the setVisible method of the ProgressBar- Parameters:
visible
- true if visible, false if not.
-
setProgressBarValue
public void setProgressBarValue(int value) Passes the parameter to the setValue method of the ProgressBar- Parameters:
value
- the progress bar value
-
cycleInfoDisplay
public void cycleInfoDisplay()moves the info display to the next panel and requests focus into the window -
showError
-
hideError
public void hideError()
-