yu.ac.bg.etf.javaqx.qswing
Class JQFrame

java.lang.Object
  extended byyu.ac.bg.etf.javaqx.core.AbstractDisposable
      extended byyu.ac.bg.etf.javaqx.qswing.JQComponent
          extended byyu.ac.bg.etf.javaqx.qswing.JQContainer
              extended byyu.ac.bg.etf.javaqx.qswing.JQWindow
                  extended byyu.ac.bg.etf.javaqx.qswing.JQFrame
All Implemented Interfaces:
Disposable, JQComponentProperties, JQContainerProperties, JQWindowConstants, JQWindowProperties
Direct Known Subclasses:
JQMainFrame

public class JQFrame
extends JQWindow

Frame Component.

Version:
0.2.0
Author:
Slobodan Vrkacevic (slobodan.vrkacevic@gmail.com)

Field Summary
 
Fields inherited from class yu.ac.bg.etf.javaqx.qswing.JQWindow
ALWAYS_ON_TOP_WINDOW_SUPPORTED, BORDER_HELP_BUTTON, BORDER_MAXIMIZE_BUTTON, BORDER_MINIMIZE_BUTTON, BORDER_SYSTEM_MENU, BORDER_TITLE, BORDER_UNDECORATED, FULL_SCREEN_WINDOW_SUPPORTED, TYPE_DIALOG, TYPE_POPUP, TYPE_SPLASH_SCREEN, TYPE_TOOL, TYPE_WINDOW, WINDOW_OPACITY_SUPPORTED, WINDOW_SHAPE_SUPPORTED
 
Fields inherited from class yu.ac.bg.etf.javaqx.qswing.JQComponent
listenerList
 
Fields inherited from interface yu.ac.bg.etf.javaqx.qswing.JQWindowConstants
APPLICATION_MODAL, DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, FULL_SCREEN, HIDE_ON_CLOSE, ICONIFIED, MAXIMIZED, NON_MODAL, NORMAL, POSITION_CUSTOM, QUIT_ON_CLOSE, WINDOW_MODAL
 
Fields inherited from interface yu.ac.bg.etf.javaqx.qswing.properties.JQWindowProperties
PROPERTY_ALWAYS_ON_TOP, PROPERTY_DEFAULT_CLOSE_OPERATION, PROPERTY_ICON_IMAGE, PROPERTY_OPACITY, PROPERTY_SHAPE, PROPERTY_TITLE
 
Fields inherited from interface yu.ac.bg.etf.javaqx.qswing.properties.JQContainerProperties
PROPERTY_LAYOUT_MANAGER
 
Fields inherited from interface yu.ac.bg.etf.javaqx.qswing.properties.JQComponentProperties
PROPERTY_BACKGROUND, PROPERTY_COMPONENT_ORIENTATION, PROPERTY_CONTEXT_MENU, PROPERTY_ENABLED, PROPERTY_FIXED_SIZE, PROPERTY_FOCUSABLE, PROPERTY_FONT, PROPERTY_FOREGROUND, PROPERTY_INSETS, PROPERTY_LOCALE, PROPERTY_MAXIMUM_SIZE, PROPERTY_MINIMUM_SIZE, PROPERTY_NAME, PROPERTY_OPAQUE, PROPERTY_PREFERRED_SIZE, PROPERTY_RESOURCE_BUNDLE_NAME, PROPERTY_STATUS_TIP_TEXT, PROPERTY_STYLE_SHEET, PROPERTY_TOOL_TIP_TEXT, PROPERTY_VISIBLE, PROPERTY_WHATS_THIS_TEXT
 
Constructor Summary
JQFrame()
          Constructs new JQFrame object.
JQFrame(java.lang.String title)
          Constructs new JQFrame object.
 
Method Summary
protected  JQComponent addImpl(JQComponent comp, java.lang.Object constraints, int index)
          Adds new component to the container.
 JQToolBar addToolBar(JQToolBar toolBar)
          Adds toolbar.
 void doLayout()
          Lays out this container.
 JQComponent getComponent(int index)
          Returns the component at specified index.
 int getComponentCount()
          Returns the number of components in this container.
 Insets getInsets()
          Returns insets of this component.
 LayoutManager getLayout()
          Returns layout manager of this component.
 JQMenuBar getMenuBar()
          Returns menu bar.
 Dimension getPreferredSize()
          Returns preferred size of the component.
 JQStatusBar getStatusBar()
          Returns status bar.
 JQToolBar getToolBar(int index)
          Returns the toolbar at specified index.
 int getToolBarCount()
          Returns the number of toolbars.
 void invalidate()
          Invalidates the component.
 JQComponent remove(int index)
          Removes index specified component from this container.
 void remove(JQComponent component)
          Removes the specified component from this container.
 void removeToolBar(JQToolBar toolBar)
          Removes the specified toolbar.
 void setComponentOrientation(ComponentOrientation orientation)
          Sets component orientation.
 void setInsets(Insets insets)
          Sets insets for this component.
 void setLayout(LayoutManager layoutManager)
          Sets the layout manager for this container.
 JQMenuBar setMenuBar(JQMenuBar menuBar)
          Sets menu bar.
 JQStatusBar setStatusBar(JQStatusBar statusBar)
          Sets status bar.
 void updateLocalization()
          Updates localization.
 void validate()
          Validates the component.
 
Methods inherited from class yu.ac.bg.etf.javaqx.qswing.JQWindow
addWindowListener, getActiveWindow, getBorderDecoration, getDefaultCloseOperation, getIconImage, getModalityType, getOpacity, getOwnedComponents, getOwnedWindows, getState, getTitle, getWindowListeners, getWindowOwner, getWindows, getWindowType, isAlwaysOnTop, isFullScreen, isModal, isUndecorated, paramString, processWindowEvent, removeWindowListener, setAlwaysOnTop, setBorderDecoration, setDefaultCloseOperation, setFixedSize, setFullScreen, setIconImage, setLocationRelativeTo, setModalityType, setOpacity, setState, setTitle, setUndecorated, setWindowOwner, setWindowType, toBack, toFront, toggleFullScreen
 
Methods inherited from class yu.ac.bg.etf.javaqx.qswing.JQContainer
add, add, add, add, getComponentIndex, getComponents, getMaximumSize, getMinimumSize, pack, removeAll, setBackground, setForeground
 
Methods inherited from class yu.ac.bg.etf.javaqx.qswing.JQComponent
addComponentListener, addFocusListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, disableEvents, disposeComponent, disposeObject, enableEvents, eventEnabled, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getClientProperty, getComponentListeners, getComponentOrientation, getContextMenu, getCursor, getEventMask, getFocusListener, getFont, getFontMetrics, getForeground, getHeight, getKeyListeners, getLocale, getLocation, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getOwner, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getResourceBundleName, getSize, getStatusTipText, getStyleSheet, getToolTipText, getToolTipText, getWhatsThisText, getWidth, getX, getY, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFontSet, isForegroundSet, isLeftToRight, isLocaleSet, isOpaque, isOwnerOf, isPainting, isResizable, isResourceBundleNameSet, isUpdatesEnabled, isValid, isVisible, localizeObject, localizeString, localizeString, localizeStrings, paintComponent, processComponentEvent, processContextMenuEvent, processFocusEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, processStyleChange, putClientProperty, removeComponentListener, removeFocusListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, removeStyleSheet, repaint, repaint, repaint, requestFocus, revalidate, setBounds, setBounds, setContextMenu, setCursor, setDefaultResourceBundleName, setDisplayable, setEnabled, setFixedSize, setFocusable, setFont, setInsets, setLeftToRightComponentOrientation, setLocale, setLocation, setLocation, setMaximumSize, setMaximumSize, setMinimumSize, setMinimumSize, setName, setOpaque, setPreferredSize, setPreferredSize, setResizable, setResourceBundleName, setRightToLeftComponentOrientation, setSize, setSize, setStatusTipText, setStyleSheet, setStyleSheet, setToolTipText, setUpdatesEnabled, setVisible, setWhatsThisText, toString, unsetComponentOrientation, update, update, update, updateComponentOrientation
 
Methods inherited from class yu.ac.bg.etf.javaqx.core.AbstractDisposable
addDisposeListener, dispose, disposedCheck, disposedErrorString, finalize, isDisposed, removeDisposeListener
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JQFrame

public JQFrame()
Constructs new JQFrame object.


JQFrame

public JQFrame(java.lang.String title)
Constructs new JQFrame object.

Parameters:
title - the frame title
Method Detail

getMenuBar

public JQMenuBar getMenuBar()
Returns menu bar.

Returns:
menu bar

setMenuBar

public JQMenuBar setMenuBar(JQMenuBar menuBar)
Sets menu bar.

Parameters:
menuBar - the menu bar
Returns:
menu bar

getToolBarCount

public int getToolBarCount()
Returns the number of toolbars.

Returns:
the number of toolbars

getToolBar

public JQToolBar getToolBar(int index)
Returns the toolbar at specified index.

Parameters:
index - the index of the toolbar
Returns:
the toolbar at specified index
Throws:
java.lang.IndexOutOfBoundsException - if index is out of range ((index < 0) | (index >= getToolBarCount())).

addToolBar

public JQToolBar addToolBar(JQToolBar toolBar)
Adds toolbar.

Parameters:
toolBar - the tool bar
Returns:
toolbar

removeToolBar

public void removeToolBar(JQToolBar toolBar)
Removes the specified toolbar.

Parameters:
toolBar - the toolbar to be removed

getStatusBar

public JQStatusBar getStatusBar()
Returns status bar.

Returns:
status bar

setStatusBar

public JQStatusBar setStatusBar(JQStatusBar statusBar)
Sets status bar.

Parameters:
statusBar - the status bar
Returns:
status bar

getPreferredSize

public Dimension getPreferredSize()
Returns preferred size of the component.

Overrides:
getPreferredSize in class JQContainer

getInsets

public Insets getInsets()
Returns insets of this component.

Overrides:
getInsets in class JQComponent
Returns:
insets of this component

setInsets

public void setInsets(Insets insets)
Sets insets for this component.

Overrides:
setInsets in class JQComponent
Parameters:
insets - the insets of the component

invalidate

public void invalidate()
Invalidates the component.

Overrides:
invalidate in class JQContainer

validate

public void validate()
Validates the component.

Overrides:
validate in class JQContainer

setComponentOrientation

public void setComponentOrientation(ComponentOrientation orientation)
Sets component orientation.

Overrides:
setComponentOrientation in class JQContainer

updateLocalization

public void updateLocalization()
Updates localization.

Overrides:
updateLocalization in class JQWindow

remove

public void remove(JQComponent component)
Removes the specified component from this container.

Overrides:
remove in class JQContainer
Parameters:
component - the component to be removed

remove

public JQComponent remove(int index)
Removes index specified component from this container.

Overrides:
remove in class JQContainer
Parameters:
index - the index of the component to be removed
Returns:
component at specified index

getComponent

public JQComponent getComponent(int index)
Returns the component at specified index.

Overrides:
getComponent in class JQContainer
Parameters:
index - the index of the component
Returns:
the component at specified index

getComponentCount

public int getComponentCount()
Returns the number of components in this container.

Overrides:
getComponentCount in class JQContainer
Returns:
the number of components in this container

getLayout

public LayoutManager getLayout()
Returns layout manager of this component.

Overrides:
getLayout in class JQContainer
Returns:
layout manager of this component

setLayout

public void setLayout(LayoutManager layoutManager)
Sets the layout manager for this container.

Overrides:
setLayout in class JQContainer
Parameters:
layoutManager - the layout manager

doLayout

public void doLayout()
Lays out this container.

Overrides:
doLayout in class JQContainer

addImpl

protected JQComponent addImpl(JQComponent comp,
                              java.lang.Object constraints,
                              int index)
Adds new component to the container.

Overrides:
addImpl in class JQContainer
Parameters:
comp - the component
constraints - the constraints
index - the component index
Returns:
added component


Copyright © 2007 ETF and contributors. All Rights Reserved.