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

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.JQSplitPane
All Implemented Interfaces:
Disposable, JQComponentProperties, JQSplitPaneProperties, QSwingConstants

public class JQSplitPane
extends JQComponent
implements QSwingConstants, JQSplitPaneProperties

Split Pane Component.

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

Field Summary
 
Fields inherited from class yu.ac.bg.etf.javaqx.qswing.JQComponent
listenerList
 
Fields inherited from interface yu.ac.bg.etf.javaqx.qswing.QSwingConstants
BOTTOM, CENTER, HORIZONTAL, LEADING, LEFT, RIGHT, TOP, TRAILING, VERTICAL
 
Fields inherited from interface yu.ac.bg.etf.javaqx.qswing.properties.JQSplitPaneProperties
PROPERTY_CONTINUOUS_LAYOUT, PROPERTY_DIVIDER_LOCATION, PROPERTY_DIVIDER_SIZE, PROPERTY_ONE_TOUCH_EXPANDABLE, PROPERTY_ORIENTATION, PROPERTY_RESIZE_WEIGHT
 
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
JQSplitPane()
          Constructs new JQSplitPane object.
JQSplitPane(int orientation)
          Constructs new JQSplitPane object.
JQSplitPane(int orientation, boolean continuousLayout)
          Constructs new JQSplitPane object.
JQSplitPane(int orientation, boolean continuousLayout, JQComponent leftComponent, JQComponent rightComponent)
          Constructs new JQSplitPane object.
JQSplitPane(int orientation, JQComponent leftComponent, JQComponent rightComponent)
          Constructs new JQSplitPane object.
JQSplitPane(JQComponent leftComponent, JQComponent rightComponent)
          Constructs new JQSplitPane object.
 
Method Summary
 JQComponent getBottomComponent()
          Returns bottom component.
 int getDividerLocation()
          Returns divider location.
 int getDividerSize()
          Returns divider size.
 JQComponent getLeftComponent()
          Returns left component.
 int getOrientation()
          Returns orientation of the split pane.
 JQComponent[] getOwnedComponents()
          Return an array containing all the components this component currently owns.
 double getResizeWeight()
          Returns the resize weight.
 JQComponent getRightComponent()
          Returns right component.
 JQComponent getTopComponent()
          Returns top component.
 boolean isContinuousLayout()
          Returns true if the resize of split pane's components is continuous.
 boolean isOneTouchExpandable()
          Returns true if the components of the split pane can be quickly expanded/collapsed.
 void setBottomComponent(JQComponent bottomComponent)
          Sets bottom component.
 void setContinuousLayout(boolean continuousLayout)
          Sets whether or not the resize of split pane's components is continuous.
 void setDividerLocation(int dividerLocation)
          Sets divider location.
 void setDividerSize(int dividerSize)
          Sets divider size.
 JQComponent setLeftComponent(JQComponent leftComponent)
          Sets left component.
 void setOneTouchExpandable(boolean oneTouchExpandable)
          Sets whether or not the components of the split pane can be quickly expanded/collapsed.
 void setOrientation(int orientation)
          Sets orientation.
 void setResizeWeight(double resizeWeight)
          Sets resize weight.
 void setRightComponent(JQComponent rightComponent)
          Sets right component.
 void setTopComponent(JQComponent topComponent)
          Sets top component.
 
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, getInsets, getKeyListeners, getLocale, getLocation, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getOwner, getParent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getResourceBundleName, getSize, getStatusTipText, getStyleSheet, getToolTipText, getToolTipText, getWhatsThisText, getWidth, getX, getY, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFontSet, isForegroundSet, isLeftToRight, isLocaleSet, isOpaque, isOwnerOf, isPainting, isResizable, isResourceBundleNameSet, isUpdatesEnabled, isValid, isVisible, localizeObject, localizeString, localizeString, localizeStrings, paintComponent, paramString, processComponentEvent, processContextMenuEvent, processFocusEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, processStyleChange, putClientProperty, removeComponentListener, removeFocusListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, removeStyleSheet, repaint, repaint, repaint, requestFocus, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setContextMenu, setCursor, setDefaultResourceBundleName, setDisplayable, setEnabled, setFixedSize, setFixedSize, setFocusable, setFont, setForeground, setInsets, 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, updateLocalization, validate
 
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

JQSplitPane

public JQSplitPane()
Constructs new JQSplitPane object.


JQSplitPane

public JQSplitPane(int orientation)
Constructs new JQSplitPane object.

Parameters:
orientation - the orientation

JQSplitPane

public JQSplitPane(int orientation,
                   boolean continuousLayout)
Constructs new JQSplitPane object.

Parameters:
orientation - the orientation
continuousLayout - true if resize of split pane's components is continuous

JQSplitPane

public JQSplitPane(int orientation,
                   JQComponent leftComponent,
                   JQComponent rightComponent)
Constructs new JQSplitPane object.

Parameters:
orientation - the orientation
leftComponent - the left component
rightComponent - the right component

JQSplitPane

public JQSplitPane(JQComponent leftComponent,
                   JQComponent rightComponent)
Constructs new JQSplitPane object.

Parameters:
leftComponent - the left component
rightComponent - the right component

JQSplitPane

public JQSplitPane(int orientation,
                   boolean continuousLayout,
                   JQComponent leftComponent,
                   JQComponent rightComponent)
Constructs new JQSplitPane object.

Parameters:
orientation - the orientation
continuousLayout - true if resize of split pane's components is continuous
leftComponent - the left component
rightComponent - the right component
Method Detail

getOrientation

public int getOrientation()
Returns orientation of the split pane.

Returns:
orientation of the split pane

setOrientation

public void setOrientation(int orientation)
Sets orientation.

Parameters:
orientation - the orientation

isContinuousLayout

public boolean isContinuousLayout()
Returns true if the resize of split pane's components is continuous.

Returns:
true if the resize of split pane's components is continuous

setContinuousLayout

public void setContinuousLayout(boolean continuousLayout)
Sets whether or not the resize of split pane's components is continuous.

Parameters:
continuousLayout - true if continuous

getResizeWeight

public double getResizeWeight()
Returns the resize weight.

Returns:
the resize weight

setResizeWeight

public void setResizeWeight(double resizeWeight)
Sets resize weight.

Parameters:
resizeWeight - the resize weight

getDividerSize

public int getDividerSize()
Returns divider size.

Returns:
divider size

setDividerSize

public void setDividerSize(int dividerSize)
Sets divider size.

Parameters:
dividerSize - the divider size

getDividerLocation

public int getDividerLocation()
Returns divider location.

Returns:
divider location

setDividerLocation

public void setDividerLocation(int dividerLocation)
Sets divider location.

Parameters:
dividerLocation - the divider location

isOneTouchExpandable

public boolean isOneTouchExpandable()
Returns true if the components of the split pane can be quickly expanded/collapsed.

Returns:
true if the components of the split pane can be quickly expanded/collapsed.

setOneTouchExpandable

public void setOneTouchExpandable(boolean oneTouchExpandable)
Sets whether or not the components of the split pane can be quickly expanded/collapsed.

Parameters:
oneTouchExpandable - true if expandable

getLeftComponent

public JQComponent getLeftComponent()
Returns left component.

Returns:
left component

setLeftComponent

public JQComponent setLeftComponent(JQComponent leftComponent)
Sets left component.

Parameters:
leftComponent - the left component
Returns:
old left component

getRightComponent

public JQComponent getRightComponent()
Returns right component.

Returns:
right component

setRightComponent

public void setRightComponent(JQComponent rightComponent)
Sets right component.

Parameters:
rightComponent - the right component

getTopComponent

public JQComponent getTopComponent()
Returns top component.

Returns:
top component

setTopComponent

public void setTopComponent(JQComponent topComponent)
Sets top component.

Parameters:
topComponent - top component

getBottomComponent

public JQComponent getBottomComponent()
Returns bottom component.

Returns:
bottom component

setBottomComponent

public void setBottomComponent(JQComponent bottomComponent)
Sets bottom component.

Parameters:
bottomComponent - bottom component

getOwnedComponents

public JQComponent[] getOwnedComponents()
Return an array containing all the components this component currently owns.

Overrides:
getOwnedComponents in class JQComponent
Returns:
an array containing all the components this component currently owns


Copyright © 2007 ETF and contributors. All Rights Reserved.