Gui4jBoxV.java :  » XML-UI » gui4j » org » gui4j » component » Java Open Source

Java Open Source » XML UI » gui4j 
gui4j » org » gui4j » component » Gui4jBoxV.java
package org.gui4j.component;

import java.util.List;

import javax.swing.Box;
import javax.swing.JComponent;

import org.gui4j.core.Gui4jComponentContainer;

/**
 * Vertical composition of components
 */
public final class Gui4jBoxV extends Gui4jBox
{

    /**
     * Constructor for Gui4jBoxV.
     * 
     * @param gui4jComponentContainer
     * @param id
     * @param gui4jComponents
     */
    public Gui4jBoxV(Gui4jComponentContainer gui4jComponentContainer, String id, List gui4jComponents, String alignment)
    {
        super(gui4jComponentContainer, id, gui4jComponents, alignment);
    }

    protected Box createLayoutContainer()
    {
        return Box.createVerticalBox();
    }

    protected void setAlignment(JComponent component)
    {
        component.setAlignmentX(0f);
    }

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.