Package com.nexirius.framework.gadgets

Examples of com.nexirius.framework.gadgets.ArrayLayout


    setLayout(new BorderLayout());
   
    try {
      JPanel north = new JPanel();
     
      north.setLayout(new ArrayLayout(false, ArrayLayout.FULL_SIZE));

            JLabel label = (JLabel) factory.createDefaultViewer(mainModel.getChild(MainModel.FIELD_LICENSE_TEXT)).getJComponent();
            label.setFont(new Font("Helvetica", Font.PLAIN, 20));
            label.setForeground(Color.white);
            label.setOpaque(false);
View Full Code Here


public class ImportArrayEditor implements SwingViewer {
    private ImportArrayModel importArrayModel;

    public JComponent createJComponent(ViewerFactory factory) {
        JPanel panel = new JPanel();
        panel.setLayout(new ArrayLayout(false, ArrayLayout.FULL_SIZE));

        try {
            panel.add(createFieldEditor(ImportArrayModel.FIELD_excelFileName, factory));
            panel.add(createFieldEditor(ImportArrayModel.FIELD_mapping, factory));
            panel.add(createFieldEditor(ImportArrayModel.FIELD_importCounter, factory));
View Full Code Here

                setVector(new StringVector("...", ""));
            }

            ObjectList list = ((LimitIntModel) getModel()).getObjectList();

            JPanel box = new JPanel(new ArrayLayout(horizontal, ArrayLayout.FULL_SIZE));
            ButtonGroup group = new ButtonGroup();
            buttons = new CFJRadioButton[list.getSize()];
            MyActionListener myActionListener = new MyActionListener(group);
            Insets margin = new Insets(0, 30, 0, 30);

            for (int i = 0; i < list.getSize(); ++i) {
                Object o = list.getElementAt(i);
                CFJRadioButton button = new CFJRadioButton(getFactory().getClientResource(), o.toString());

                button.setMargin(margin);
                group.add(button);

                if (!mustHide(i)) {
                    box.add(button);
                }

                buttons[i] = button;
                button.addActionListener(myActionListener);
            }

            setJComponent(box);
        } else if (getModel() instanceof BooleanModel) {
            ArrayLayout al = new ArrayLayout(true, ArrayLayout.FULL_SIZE);
            JPanel box = new JPanel(al);
            ButtonGroup group = new ButtonGroup();

            al.setMargin(0);
            buttons = new CFJRadioButton[2];
            MyBooleanListener myBooleanListener = new MyBooleanListener(group);
            SimpleArrayModel labelArray = ((BooleanModel) getModel()).getTrueFalseLabelModel();
            String labels[];
View Full Code Here

    setLayout(new BorderLayout());
   
    try {
      JPanel north = new JPanel();
     
      north.setLayout(new ArrayLayout(false, ArrayLayout.FULL_SIZE));
      north.add(createFieldEditor("doNotSend", factory));     
      north.add(createFieldEditor("name", factory));     
      north.add(createFieldEditor("firstName", factory));     
      north.add(createFieldEditor("email", factory));     
      north.add(createFieldEditor("greeting", factory));     
      north.add(createFieldEditor("sentDate", factory));     
      add(north, BorderLayout.NORTH);

      JComponent center = factory.createDefaultEditor(mailModel.getViewableChild("ps")).getJComponent();
 
      center.setPreferredSize(new Dimension(600, 200));

      add(center, BorderLayout.CENTER);

      JPanel south = new JPanel();
     
      south.setLayout(new ArrayLayout(false, ArrayLayout.FULL_SIZE));
      south.add(createFieldEditor("text1", factory));     
      south.add(createFieldEditor("text2", factory));     
      south.add(createFieldEditor("text3", factory));     
      south.add(createFieldEditor("text4", factory));     
      add(south, BorderLayout.SOUTH);
View Full Code Here

        return ret;
    }

    private void init() {
        setLayout(new ArrayLayout(true));
        Icon icon = this.treeRenderer.getIcon(this.item.getIconId());

        if (this.item.getColumns() >= 1) {
            for (int i = 0; i < this.item.getColumns(); ++i) {
                Color bg = this.treeRenderer.getColor(this.item.getBackgroundColorId(i));
View Full Code Here

TOP

Related Classes of com.nexirius.framework.gadgets.ArrayLayout

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.