Package nextapp.echo2.app

Examples of nextapp.echo2.app.SplitPane


     *      nextapp.echo2.app.update.ServerComponentUpdate, java.lang.String, nextapp.echo2.app.Component)
     */
    public void renderAdd(RenderContext rc, ServerComponentUpdate update, String targetId, Component component) {
        ServerMessage serverMessage = rc.getServerMessage();
        serverMessage.addLibrary(SPLIT_PANE_SERVICE.getId());
        SplitPane splitPane = (SplitPane) component;
        renderInitDirective(rc, splitPane, targetId);
        Component[] children = splitPane.getVisibleComponents();
        for (int i = 0; i < children.length; ++i) {
            renderChild(rc, update, splitPane, children[i]);
        }
        updateRenderState(rc, splitPane);
    }
View Full Code Here


     *
     * @param rc the relevant <code>RenderContext</code>
     * @param update the update
     */
    private void renderAddChildren(RenderContext rc, ServerComponentUpdate update) {
        SplitPane splitPane = (SplitPane) update.getParent();
        RenderStateImpl currentRenderState = new RenderStateImpl(splitPane);

        Component[] addedChildren = update.getAddedChildren();
        for (int i = 0; i < addedChildren.length; i++) {
            String id = ContainerInstance.getElementId(addedChildren[i]);
View Full Code Here

     * @param update the update
     * @return true if any children have been relocated
     */
    private boolean hasRelocatedChildren(RenderContext rc, ServerComponentUpdate update) {
        ContainerInstance ci = rc.getContainerInstance();
        SplitPane splitPane = (SplitPane) update.getParent();
        RenderStateImpl previous = (RenderStateImpl) ci.getRenderState(splitPane);
        if (previous == null) {
            return false;
        }
        RenderStateImpl current = new RenderStateImpl(splitPane);
View Full Code Here

     * @param rc the relevant <code>RenderContext</code>
     * @param update the update
     */
    private void renderRemoveChildren(RenderContext rc, ServerComponentUpdate update) {
        ContainerInstance ci = rc.getContainerInstance();
        SplitPane splitPane = (SplitPane) update.getParent();
        RenderStateImpl previousRenderState = (RenderStateImpl) ci.getRenderState(splitPane);

        Component[] removedChildren = update.getRemovedChildren();
        for (int i = 0; i < removedChildren.length; i++) {
            String id = ContainerInstance.getElementId(removedChildren[i]);
View Full Code Here

        splitPaneLayoutData.setBackground(COLOR_A);
        splitPaneLayoutData.setInsets(INSETS_10);
        label = new Label("A");
        label.setLayoutData(splitPaneLayoutData);
        add(label);
        SplitPane splitPaneAlpha = new SplitPane(SplitPane.ORIENTATION_HORIZONTAL_LEADING_TRAILING, paneSize);
        splitPaneAlpha.setStyleName("DefaultResizable");
        add(splitPaneAlpha);
       
        splitPaneLayoutData = new SplitPaneLayoutData();
        splitPaneLayoutData.setBackground(COLOR_B);
        splitPaneLayoutData.setInsets(INSETS_10);
        label = new Label("B");
        label.setLayoutData(splitPaneLayoutData);
        splitPaneAlpha.add(label);
        SplitPane splitPaneBravo = new SplitPane(SplitPane.ORIENTATION_VERTICAL_BOTTOM_TOP, paneSize);
        splitPaneBravo.setStyleName("DefaultResizable");
        splitPaneAlpha.add(splitPaneBravo);
       
        splitPaneLayoutData = new SplitPaneLayoutData();
        splitPaneLayoutData.setBackground(COLOR_C);
        splitPaneLayoutData.setInsets(INSETS_10);
        label = new Label("C");
        label.setLayoutData(splitPaneLayoutData);
        splitPaneBravo.add(label);
        SplitPane splitPaneCharlie = new SplitPane(SplitPane.ORIENTATION_HORIZONTAL_TRAILING_LEADING, paneSize);
        splitPaneCharlie.setStyleName("DefaultResizable");
        splitPaneBravo.add(splitPaneCharlie);
       
        splitPaneLayoutData = new SplitPaneLayoutData();
        splitPaneLayoutData.setBackground(COLOR_D);
        splitPaneLayoutData.setInsets(INSETS_10);
        label = new Label("D");
        label.setLayoutData(splitPaneLayoutData);
        splitPaneCharlie.add(label);
        SplitPane splitPaneDelta = new SplitPane(SplitPane.ORIENTATION_VERTICAL_TOP_BOTTOM, paneSize);
        splitPaneDelta.setStyleName("DefaultResizable");
        splitPaneCharlie.add(splitPaneDelta);
       
        splitPaneLayoutData = new SplitPaneLayoutData();
        splitPaneLayoutData.setBackground(COLOR_E);
        splitPaneLayoutData.setInsets(INSETS_10);
        label = new Label("E");
        label.setLayoutData(splitPaneLayoutData);
        splitPaneDelta.add(label);
        SplitPane splitPaneEcho = new SplitPane(SplitPane.ORIENTATION_HORIZONTAL_LEADING_TRAILING, paneSize);
        splitPaneEcho.setStyleName("DefaultResizable");
        splitPaneDelta.add(splitPaneEcho);

        splitPaneLayoutData = new SplitPaneLayoutData();
        splitPaneLayoutData.setBackground(COLOR_F);
        splitPaneLayoutData.setInsets(INSETS_10);
        label = new Label("F");
        label.setLayoutData(splitPaneLayoutData);
        splitPaneEcho.add(label);
        SplitPane splitPaneFoxtrot = new SplitPane(SplitPane.ORIENTATION_VERTICAL_BOTTOM_TOP, paneSize);
        splitPaneFoxtrot.setStyleName("DefaultResizable");
        splitPaneEcho.add(splitPaneFoxtrot);

        splitPaneLayoutData = new SplitPaneLayoutData();
        splitPaneLayoutData.setBackground(COLOR_G);
        splitPaneLayoutData.setInsets(INSETS_10);
        label = new Label("G");
        label.setLayoutData(splitPaneLayoutData);
        splitPaneFoxtrot.add(label);
        SplitPane splitPaneGolf = new SplitPane(SplitPane.ORIENTATION_HORIZONTAL_TRAILING_LEADING, paneSize);
        splitPaneGolf.setStyleName("DefaultResizable");
        splitPaneFoxtrot.add(splitPaneGolf);

        splitPaneLayoutData = new SplitPaneLayoutData();
        splitPaneLayoutData.setBackground(COLOR_H);
        splitPaneLayoutData.setInsets(INSETS_10);
        label = new Label("H");
        label.setLayoutData(splitPaneLayoutData);
        splitPaneGolf.add(label);
        splitPaneLayoutData = new SplitPaneLayoutData();
        splitPaneLayoutData.setBackground(COLOR_I);
        splitPaneLayoutData.setInsets(INSETS_10);
        label = new Label("I");
        label.setLayoutData(splitPaneLayoutData);
        splitPaneGolf.add(label);
    }
View Full Code Here

     */
    @Override
    protected void initForm() {
        super.initForm();

        ButtonGroup radioGroup = new ButtonGroup();
        Column colMain = new Column();
        Row row1 = new Row();
        row1.setAlignment(Alignment.ALIGN_TOP);
        rbNoDate = new JbsRadioButton();
        rbNoDate.setText(JbsL10N.getString("FmSelectDate.noDate"));
View Full Code Here

    protected void addAction(String actionCommand) {
        EventListener[] listeners = listenerList.getListeners(ActionListener.class);
        for (int i = 0; i < listeners.length; i++) {
            ActionListener actionListener = (ActionListener) listeners[i];
            try {
                actionListener.actionPerformed(new ActionEvent(JbsDialogWindow.this, actionCommand));
            } catch (Throwable t) {
                logger.error("Error adding action.",t);
            }
        }
    }
View Full Code Here

    protected void addAction(String actionCommand) {
        EventListener[] listeners = listenerList.getListeners(ActionListener.class);
        for (int i = 0; i < listeners.length; i++) {
            ActionListener actionListener = (ActionListener) listeners[i];
            try {
                actionListener.actionPerformed(new ActionEvent(PnEditJbsObject.this, actionCommand));
            } catch (Throwable t) {
                logger.error("Error adding action.",t);
            }
        }
    }
View Full Code Here

    protected final String IMG_DROPDOWN = Styles.IMAGE_PATH + "blank.gif";
   
    public JbsMenuLabel(String text) {
        super();
        this.setBtnMain(new JbsButton(""));
        this.getBtnMain().addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent arg0) {
                logger.debug("popup");
                setExpanded(!isExpanded());
                collapseAllOther();
View Full Code Here

        }
    }
   
    public void addMenuItem(MenuItem menuItem) {
        menuItem.setBorder(BorderEx.NONE);
        menuItem.addActionListener(new ActionListener() {

            private static final long serialVersionUID = 1L;

            public void actionPerformed(ActionEvent arg0) {
                setExpanded(false);
View Full Code Here

TOP

Related Classes of nextapp.echo2.app.SplitPane

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.