Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package se.proxus.frames;
- public interface Component {
- /**
- * Sets the components text.
- *
- * @param text
- * The desired text.
- */
- public void setText(String text);
- /**
- * Gets the components text.
- *
- * @return The components text.
- */
- public String getText();
- /**
- * Sets the components x coordinate.
- *
- * @param x
- * The desired x coordinate.
- */
- public void setX(int x);
- /**
- * Gets the components x coordinate.
- *
- * @return The components x coordinate.
- */
- public int getX();
- /**
- * Sets the components y coordinate.
- *
- * @param y
- * The desired y coordinate.
- */
- public void setY(int y);
- /**
- * Gets the components y coordinate.
- *
- * @return The components y coordinate.
- */
- public int getY();
- /**
- * Sets the components width.
- *
- * @param width
- * The desired width.
- */
- public void setWidth(int width);
- /**
- * Gets the components width.
- *
- * @return The components width.
- */
- public int getWidth();
- /**
- * Sets the components height.
- *
- * @param width
- * The desired height.
- */
- public void setHeight(int height);
- /**
- * Gets the components height.
- *
- * @return The components height.
- */
- public int getHeight();
- /**
- * Sets the state of the component.
- *
- * @param state
- * The state of the component.
- */
- public void setState(boolean state);
- /**
- * Gets the components current state.
- *
- * @return The components current state.
- */
- public boolean getState();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement