com.sibvisions.rad.ui.qt.ext.layout
Class QVxSequenceLayout

java.lang.Object
  extended by com.trolltech.qt.internal.QSignalEmitterInternal
      extended by com.trolltech.qt.QSignalEmitter
          extended by com.trolltech.qt.QtJambiObject
              extended by com.trolltech.qt.core.QObject
                  extended by com.trolltech.qt.gui.QLayout
                      extended by com.sibvisions.rad.ui.qt.ext.layout.QVxSequenceLayout
All Implemented Interfaces:
QLayoutItemInterface, QtJambiInterface

public class QVxSequenceLayout
extends QLayout

The QVxSequenceLayout can be used as FlowLayout with additional features. The additional features are:


Nested Class Summary
 
Nested classes/interfaces inherited from class com.trolltech.qt.gui.QLayout
QLayout.SizeConstraint
 
Nested classes/interfaces inherited from class com.trolltech.qt.QtJambiObject
QtJambiObject.QPrivateConstructor
 
Nested classes/interfaces inherited from class com.trolltech.qt.QSignalEmitter
QSignalEmitter.AbstractSignal, QSignalEmitter.PrivateSignal0, QSignalEmitter.PrivateSignal1<A>, QSignalEmitter.PrivateSignal2<A,B>, QSignalEmitter.PrivateSignal3<A,B,C>, QSignalEmitter.PrivateSignal4<A,B,C,D>, QSignalEmitter.PrivateSignal5<A,B,C,D,E>, QSignalEmitter.PrivateSignal6<A,B,C,D,E,F>, QSignalEmitter.PrivateSignal7<A,B,C,D,E,F,G>, QSignalEmitter.PrivateSignal8<A,B,C,D,E,F,G,H>, QSignalEmitter.PrivateSignal9<A,B,C,D,E,F,G,H,I>, QSignalEmitter.Signal0, QSignalEmitter.Signal1<A>, QSignalEmitter.Signal2<A,B>, QSignalEmitter.Signal3<A,B,C>, QSignalEmitter.Signal4<A,B,C,D>, QSignalEmitter.Signal5<A,B,C,D,E>, QSignalEmitter.Signal6<A,B,C,D,E,F>, QSignalEmitter.Signal7<A,B,C,D,E,F,G>, QSignalEmitter.Signal8<A,B,C,D,E,F,G,H>, QSignalEmitter.Signal9<A,B,C,D,E,F,G,H,I>
 
Nested classes/interfaces inherited from class com.trolltech.qt.internal.QSignalEmitterInternal
com.trolltech.qt.internal.QSignalEmitterInternal.AbstractSignalInternal
 
Field Summary
 
Fields inherited from class com.trolltech.qt.internal.QSignalEmitterInternal
currentSender
 
Constructor Summary
QVxSequenceLayout()
          Creates a new instance of QVxSequenceLayout with Qt.Orientation.Horizontal orientation and 5 pixels vertical and horizontal gap.
QVxSequenceLayout(Qt.Orientation pOrientation)
          Creates a new instance of QVxSequenceLayout with the desired orientation and 5 pixels vertical and horizontal gap.
QVxSequenceLayout(Qt.Orientation pOrientation, int pHorizontalGap, int pVerticalGap)
          Creates a new instance of QVxSequenceLayout with the desired orientation and gaps.
 
Method Summary
 void addItem(QLayoutItemInterface pItem)
          
 void addWidget(QWidget pWidget, int pIndex)
          Adds a widget to the layout, at a specified index.
 int count()
          
 Qt.AlignmentFlag getHorizontalAlignment()
          Returns the alignment for the x axis.
 Qt.AlignmentFlag getHorizontalComponentAlignment()
          Gets the component alignment for the x axis.
 int getHorizontalGap()
          Gets the horizontal gap between components.
 Qt.Orientation getOrientation()
          Gets the component orientation.
 Qt.AlignmentFlag getVerticalAlignment()
          Gets the alignment for the y axis.
 Qt.AlignmentFlag getVerticalComponentAlignment()
          Gets the component alignment for the x axis.
 int getVerticalGap()
          Gets the vertical gap between components.
 boolean isAutoWrap()
          Gets the current state of the automatic wrap mode.
 QLayoutItemInterface itemAt(int pPosition)
          
 void setAutoWrap(boolean pAutoWrap)
          Sets the automatic wrap mode.
 void setGeometry(QRect p2Geometry)
          
 void setHorizontalAlignment(Qt.AlignmentFlag pHorizontalAlignment)
          Sets the alignment for the x axis.
 void setHorizontalComponentAlignment(Qt.AlignmentFlag pHorizontalComponentAlignment)
          Sets the component alignment for the x axis.
 void setHorizontalGap(int pGap)
          Sets horizontal gap between components.
 void setOrientation(Qt.Orientation pOrientation)
          Sets the orientation of the components in the "layout".
 void setVerticalAlignment(Qt.AlignmentFlag pVerticalAlignment)
          Sets the alignment for the y axis.
 void setVerticalComponentAlignment(Qt.AlignmentFlag pVerticalComponentAlignment)
          Sets the component alignement for the y axis.
 void setVerticalGap(int pGap)
          Sets the vertical gap between components.
 QSize sizeHint()
          
 QLayoutItemInterface takeAt(int pPosition)
          
 
Methods inherited from class com.trolltech.qt.gui.QLayout
__qt_cast_to_QLayoutItem, activate, addChildLayout, addChildWidget, addWidget, alignment, alignmentRect, childEvent, closestAcceptableSize, contentsRect, controlTypes, expandingDirections, fromNativePointer, geometry, getContentsMargins, hasHeightForWidth, heightForWidth, indexOf, invalidate, isEmpty, isEnabled, layout, maximumSize, menuBar, minimumHeightForWidth, minimumSize, parentWidget, removeItem, removeWidget, setAlignment, setAlignment, setAlignment, setAlignment, setAlignment, setContentsMargins, setContentsMargins, setEnabled, setMargin, setMenuBar, setSizeConstraint, setWidgetSpacing, sizeConstraint, spacerItem, totalHeightForWidth, totalMaximumSize, totalMinimumSize, totalSizeHint, update, widget, widgetEvent, widgetSpacing
 
Methods inherited from class com.trolltech.qt.core.QObject
blockSignals, children, connectSlotsByName, customEvent, disposeLater, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, event, eventFilter, findChild, findChild, findChild, findChildren, findChildren, findChildren, findChildren, indexOfProperty, installEventFilter, isWidgetType, killTimer, moveToThread, objectName, parent, properties, property, removeEventFilter, setObjectName, setParent, setProperty, signalsBlocked, startTimer, thread, timerEvent, toString, userProperty
 
Methods inherited from class com.trolltech.qt.QtJambiObject
disableGarbageCollection, dispose, disposed, equals, finalize, nativeId, nativePointer, reassignNativeResources, reenableGarbageCollection, setJavaOwnership, tr, tr, tr
 
Methods inherited from class com.trolltech.qt.QSignalEmitter
disconnect, disconnect, signalSender
 
Methods inherited from class com.trolltech.qt.internal.QSignalEmitterInternal
__qt_signalInitialization
 
Methods inherited from class java.lang.Object
clone, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.trolltech.qt.QtJambiInterface
disableGarbageCollection, nativeId, nativePointer, reenableGarbageCollection, setJavaOwnership
 

Constructor Detail

QVxSequenceLayout

public QVxSequenceLayout()
Creates a new instance of QVxSequenceLayout with Qt.Orientation.Horizontal orientation and 5 pixels vertical and horizontal gap.


QVxSequenceLayout

public QVxSequenceLayout(Qt.Orientation pOrientation)
Creates a new instance of QVxSequenceLayout with the desired orientation and 5 pixels vertical and horizontal gap.

Parameters:
pOrientation - the desired orientation

QVxSequenceLayout

public QVxSequenceLayout(Qt.Orientation pOrientation,
                         int pHorizontalGap,
                         int pVerticalGap)
Creates a new instance of QVxSequenceLayout with the desired orientation and gaps.

Parameters:
pOrientation - the desired orientation
pHorizontalGap - the horizontal gap
pVerticalGap - the vertical gap
Method Detail

addItem

public void addItem(QLayoutItemInterface pItem)

Specified by:
addItem in class QLayout

count

public int count()

Specified by:
count in class QLayout

itemAt

public QLayoutItemInterface itemAt(int pPosition)

Specified by:
itemAt in class QLayout

sizeHint

public QSize sizeHint()

Specified by:
sizeHint in interface QLayoutItemInterface
Specified by:
sizeHint in class QLayout

takeAt

public QLayoutItemInterface takeAt(int pPosition)

Specified by:
takeAt in class QLayout

setGeometry

public void setGeometry(QRect p2Geometry)

Specified by:
setGeometry in interface QLayoutItemInterface
Overrides:
setGeometry in class QLayout

addWidget

public void addWidget(QWidget pWidget,
                      int pIndex)
Adds a widget to the layout, at a specified index.

Parameters:
pWidget - the widget
pIndex - the index

setOrientation

public void setOrientation(Qt.Orientation pOrientation)
Sets the orientation of the components in the "layout".

Parameters:
pOrientation - the orientation Qt.Orientation.Horizontal or Qt.Orientation.Vertical

getOrientation

public Qt.Orientation getOrientation()
Gets the component orientation.

Returns:
Qt.Orientation.Horizontal or Qt.Orientation.Vertical

setHorizontalGap

public void setHorizontalGap(int pGap)
Sets horizontal gap between components.

Parameters:
pGap - the gap in pixel

getHorizontalGap

public int getHorizontalGap()
Gets the horizontal gap between components.

Returns:
the gap in pixel

setVerticalGap

public void setVerticalGap(int pGap)
Sets the vertical gap between components.

Parameters:
pGap - the gap in pixel

getVerticalGap

public int getVerticalGap()
Gets the vertical gap between components.

Returns:
the gap in pixel

setAutoWrap

public void setAutoWrap(boolean pAutoWrap)
Sets the automatic wrap mode. This means that the layout acts like the FlowLayout.

Parameters:
pAutoWrap - true to enabled the auto wrap mode; false otherwise

isAutoWrap

public boolean isAutoWrap()
Gets the current state of the automatic wrap mode.

Returns:
true if the automatic wrap mode is enabled; otherwise false

setHorizontalAlignment

public void setHorizontalAlignment(Qt.AlignmentFlag pHorizontalAlignment)
Sets the alignment for the x axis.

Parameters:
pHorizontalAlignment - the alignment Qt.AlignmentFlag.AlignLeft, Qt.AlignmentFlag.AlignCenter, Qt.AlignmentFlag.AlignRight or Qt.AlignmentFlag.AlignJustify

getHorizontalAlignment

public Qt.AlignmentFlag getHorizontalAlignment()
Returns the alignment for the x axis.

Returns:
the alignment Qt.AlignmentFlag.AlignLeft, Qt.AlignmentFlag.AlignCenter, Qt.AlignmentFlag.AlignRight or Qt.AlignmentFlag.AlignJustify

setVerticalAlignment

public void setVerticalAlignment(Qt.AlignmentFlag pVerticalAlignment)
Sets the alignment for the y axis.

Parameters:
pVerticalAlignment - the alignment Qt.AlignmentFlag.AlignTop, Qt.AlignmentFlag.AlignCenter, Qt.AlignmentFlag.AlignBottom or Qt.AlignmentFlag.AlignJustify

getVerticalAlignment

public Qt.AlignmentFlag getVerticalAlignment()
Gets the alignment for the y axis.

Returns:
the alignment Qt.AlignmentFlag.AlignTop, Qt.AlignmentFlag.AlignCenter, Qt.AlignmentFlag.AlignBottom or Qt.AlignmentFlag.AlignJustify

setHorizontalComponentAlignment

public void setHorizontalComponentAlignment(Qt.AlignmentFlag pHorizontalComponentAlignment)
Sets the component alignment for the x axis. The alignment will be used, if the container contains components which have different widths and the orientation of the layout is Qt.Orientation.Vertical.

Parameters:
pHorizontalComponentAlignment - the alignment Qt.AlignmentFlag.AlignLeft, Qt.AlignmentFlag.AlignCenter, Qt.AlignmentFlag.AlignRight or Qt.AlignmentFlag.AlignJustify

getHorizontalComponentAlignment

public Qt.AlignmentFlag getHorizontalComponentAlignment()
Gets the component alignment for the x axis.

Returns:
the alignment Qt.AlignmentFlag.AlignLeft, Qt.AlignmentFlag.AlignCenter, Qt.AlignmentFlag.AlignRight or Qt.AlignmentFlag.AlignJustify
See Also:
setHorizontalComponentAlignment(com.trolltech.qt.core.Qt.AlignmentFlag)

setVerticalComponentAlignment

public void setVerticalComponentAlignment(Qt.AlignmentFlag pVerticalComponentAlignment)
Sets the component alignement for the y axis. The alignment will be used, if the container contains components which have different heights and the orientation of the layout is Qt.Orientation.Horizontal.

Parameters:
pVerticalComponentAlignment - the alignment Qt.AlignmentFlag.AlignTop, Qt.AlignmentFlag.AlignCenter, Qt.AlignmentFlag.AlignBottom or Qt.AlignmentFlag.AlignJustify

getVerticalComponentAlignment

public Qt.AlignmentFlag getVerticalComponentAlignment()
Gets the component alignment for the x axis.

Returns:
the alignment Qt.AlignmentFlag.AlignTop, Qt.AlignmentFlag.AlignCenter, Qt.AlignmentFlag.AlignBottom or Qt.AlignmentFlag.AlignJustify
See Also:
setVerticalComponentAlignment(com.trolltech.qt.core.Qt.AlignmentFlag)


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.