Examples of CardLayout


Examples of com.emitrom.touch4j.client.layout.CardLayout

    /**
     * Sets the value of layout
     */
    public void setLayout(Layout layout) {
        if (layout == Layout.CARD) {
            this.setLayout(new CardLayout());
        } else if (layout == Layout.FIT) {
            this.setLayout(new FitLayout());
        } else if (layout == Layout.HBOX) {
            this.setLayout(new HBoxLayout());
        } else if (layout == Layout.VBOX) {
View Full Code Here

Examples of com.extjs.gxt.ui.client.widget.layout.CardLayout

  /**
   * Creates a new tab panel.
   */
  public TabPanel() {
    baseStyle = "x-tab-panel";
    cardLayout = new CardLayout();
    setLayout(cardLayout);
    enableLayout = true;
    setMessages(new TabPanelMessages());
    setDeferHeight(true);
  }
View Full Code Here

Examples of com.gwtext.client.widgets.layout.CardLayout

    this.attachmentsPanel = new Panel();
    this.attachmentsPanel.setLayout( new ColumnLayout() );
    this.formPanel.add( this.attachmentsPanel, new AnchorLayoutData( "100%" ) );

    this.textPanelWrapperLayout = new CardLayout( true );
    this.textPanelWrapper = new Panel();
    this.textPanelWrapper.setBorder( false );
    this.textPanelWrapper.setLayout( this.textPanelWrapperLayout );

    this.htmlMessageField = new HtmlEditor();
View Full Code Here

Examples of java.awt.CardLayout

*
* @return a dummy blank panel
*/
protected JPanel editPanel() {
    cardPanel = new JPanel();
    cardPanel.setLayout(new CardLayout(HORIZ_GAP, VERT_GAP));

    // Panels are created and added as they are needed. We start with
    // a dummy blank one.
    JPanel panel = new JPanel();
    panel.setPreferredSize(new Dimension(EDIT_PANEL_WIDTH, EDIT_PANEL_HEIGHT));
View Full Code Here

Examples of java.awt.CardLayout

  inq = Inquisitor.create(selectedParameter);
  createdInquisitors.put(selectedParameter, inq);
  cardPanel.add(inq.getPanel(), inq.getPanelName());
    }

    CardLayout cardLayout = (CardLayout)cardPanel.getLayout();
    cardLayout.show(cardPanel, inq.getPanelName());

    // Fill card
    inq.copyParamIntoGUI();
}
View Full Code Here

Examples of java.awt.CardLayout

/**
* Displays the swing page, building it first if necessary.
*/
void showPage() {
    getPage();      // Make sure page completely built
    CardLayout cardLayout = (CardLayout)parent.getLayout();
    cardLayout.show(parent, "page " + pageNumber);
}
View Full Code Here

Examples of java.awt.CardLayout

*/
void forgetPage() {
    if (!isPageBuilt())
  return;

    CardLayout cardLayout = (CardLayout)parent.getLayout();
    cardLayout.removeLayoutComponent(page);
    parent.remove(page);

    page = null;
}
View Full Code Here

Examples of java.awt.CardLayout

  public JWizard(Wizard widget) {
    this.widget = widget;
    pages = new ArrayList();
    listeners = new ArrayList();
    layout = new CardLayout();
    pagesByName = new HashMap();
    componentPanel = new JPanel();
    componentPanel.setLayout(layout);

    JPanel buttonPanel = new JPanel();
View Full Code Here

Examples of java.awt.CardLayout

    final JPanel enumerationEditor = createEnumerationEditor();
    final JPanel textEditor = createTextEditor();
    final JPanel classEditor = createClassEditor();

    detailManagerPanel = new JPanel();
    detailManager = new CardLayout();
    detailManagerPanel.setLayout(detailManager);
    detailManagerPanel.add(classEditor, ConfigDescriptionEditor.CLASS_DETAIL_EDITOR_NAME);
    detailManagerPanel.add(textEditor, ConfigDescriptionEditor.TEXT_DETAIL_EDITOR_NAME);
    detailManagerPanel.add(enumerationEditor, ConfigDescriptionEditor.ENUM_DETAIL_EDITOR_NAME);
View Full Code Here

Examples of java.awt.CardLayout

        JComboBox cb = new JComboBox(comboBoxItems);
        cb.setEditable(false);
        cb.addItemListener(new ItemListener() {
            public void itemStateChanged(ItemEvent evt) {
                CardLayout cl = (CardLayout) (cards.getLayout());
                String active = (String) evt.getItem();
                cl.show(cards, active);
                setActiveGeneratorLoader(active);
            }
        });
        // Put the JComboBox in a JPanel to get a nicer look.
        JPanel comboBoxPane = new JPanel(); // use FlowLayout
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.