Xoetrope

 Wiki : XRollupBar

HomePage :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register
Most recent edit on 2008-02-12 17:06:07 by LuanO

Additions:
XUI 4.0



Oldest known version of this page was edited on 2007-12-06 13:19:12 by LuanO []
Page view:
XuiPro logo

XRollupBar

class com.xoetrope.swing.XRollupBar

The XRollupBar class displays a rollup or outlook bar, where one panel is displayed within a column and other panels can be revealed by click on buttons within that column, for example:

Sample Rollup

This example is setup with the following XML:

<?xml version="1.0" encoding="UTF-8" ?>
<XPage....

    <Components>

      <RollupBar style="RollUp" painter="com.xoetrope.swing.painter.XGradientToggleButtonPainter" antiAlias="true" >
        <ScrollPane title="Organization" opaque="true" border="0">
          <Tree name="taskList" border="0"/>
        </ScrollPane>
        <ScrollPane title="Other" opaque="true">
          <Tree name="otherList" border="0"/>
        </ScrollPane>
        <Panel title="Search" opaque="true" layout="border">
          <Label content="foo"/>
        </Panel>
      </RollupBar>
    </Components>
?>


By default the rollup uses instances of XImageButton for its buttons and the attributes of the RollupBar element are passed to each instance of the image button. For example the names of the images for the various button states can be passed, or as in the example above a reference to a background painter class can be passed.

Transitions from one panel to the next are animated.

The rollup will show one panel at a time.

SourceForge Logo
Page was generated in 0.1617 seconds