Interface IFrame
- All Known Implementing Classes:
ExternalFrame,InternalFrame
public interface IFrame
This interface is a model for CorePlugin windows. When CorePlugin receives an
IWindow object, it creates a JInternalFrame or a JDialog, depending on
the specified properties.
This interface allows coreplugin to talk to JInternalFrames and JDialogs in
a uniform way.
- Author:
- Cesar Martinez Izquierdo invalid input: '<'cesar.martinez@iver.es>
-
Method Summary
Modifier and TypeMethodDescriptionGets the window bounds.intGets the window height.Gets the minimum allowed size for this window.getTitle()Gets the title propertyintgetWidth()Gets the window width.intgetX()Returns the current x coordinate of the window's origin.intgetY()Returns the current y coordinate of the window's origin.voidSets the window bounds.voidsetHeight(int height) Sets the window height.voidsetLocation(int x, int y) voidsetMinimumSize(Dimension minSize) Sets the minimum allowed size for this window.voidSets the title property.voidsetWidth(int width) Sets the window width.voidsetX(int x) Sets the value of the x coordinate for the origin of the associated window.voidsetY(int y) Sets the value of the y coordinate for the origin of the associated window.
-
Method Details
-
getTitle
String getTitle()Gets the title property- Returns:
-
setTitle
Sets the title property.- Parameters:
title- The new title.
-
getX
int getX()Returns the current x coordinate of the window's origin.- Returns:
- Returns the value (in pixels) of the x coordinate of the window's origin.
-
setX
void setX(int x) Sets the value of the x coordinate for the origin of the associated window.- Parameters:
x- The value (in pixels) of the x coordinate
-
getY
int getY()Returns the current y coordinate of the window's origin.- Returns:
- Returns the value (in pixels) of the y coordinate of the window's origin.
-
setY
void setY(int y) Sets the value of the y coordinate for the origin of the associated window.- Parameters:
y- The value (in pixels) of the y coordinate
-
getHeight
int getHeight()Gets the window height.- Returns:
- The window height (in pixels).
-
getWidth
int getWidth()Gets the window width.- Returns:
- The window width (in pixels).
-
setHeight
void setHeight(int height) Sets the window height.- Parameters:
height- the window height (in pixels)
-
setWidth
void setWidth(int width) Sets the window width.- Parameters:
The- window width (in pixels)
-
getMinimumSize
Dimension getMinimumSize()Gets the minimum allowed size for this window.- Returns:
- minSize The minimum allowed size for this window.
-
setMinimumSize
Sets the minimum allowed size for this window. If null is provided, the minimum size is disabled (and thus the window can be resized to any size).- Parameters:
minSize- The minimum allowed size for this window.
-
getBounds
Rectangle getBounds()Gets the window bounds.- Returns:
- The window bounds.
-
setBounds
Sets the window bounds.- Parameters:
bounds- The window bounds.
-
setLocation
void setLocation(int x, int y)
-