Examples of CheckboxList


Examples of net.sourceforge.processdash.ui.lib.CheckboxList

            JOptionPane.showMessageDialog(parentComponent, message, title,
                JOptionPane.ERROR_MESSAGE);
            return Collections.EMPTY_LIST;
        }

        CheckboxList cbl = new CheckboxList(taskLists.toArray());
        if (preselectedNames != null) {
            for (int i = 0;  i < taskLists.size();  i++) {
                if (preselectedNames.contains(taskLists.get(i).taskListName))
                    cbl.setChecked(i, true);
            }
        }

        JScrollPane sp = new JScrollPane(cbl);
        sp.getViewport().setBackground(cbl.getBackground());
        sp.setPreferredSize(new Dimension(200, 200));
        Object message = new Object[] {
            resources.getString("Forecast_Ranges.Historical_Data.Prompt"), sp };
        if (JOptionPane.showConfirmDialog(parentComponent, message,
            resources.getString("Forecast_Ranges.Historical_Data.Window_Title"),
            JOptionPane.OK_CANCEL_OPTION) != JOptionPane.OK_OPTION)
            return null;

        Object[] selections = cbl.getCheckedItems();
        List<String> result = new ArrayList<String>(selections.length);
        for (int i = 0; i < selections.length; i++) {
            result.add(((TaskListSelection) selections[i]).taskListName);
        }
        return result;
View Full Code Here

Examples of org.apache.struts2.components.CheckboxList

public class CheckboxListTag extends AbstractRequiredListTag {

    private static final long serialVersionUID = 4023034029558150010L;

    public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
        return new CheckboxList(stack, req, res);
    }
View Full Code Here

Examples of org.apache.struts2.components.CheckboxList

/**
* @see CheckboxList
*/
public class CheckBoxListDirective extends AbstractDirective {
    protected Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
        return new CheckboxList(stack, req, res);
    }
View Full Code Here

Examples of org.apache.struts2.components.CheckboxList

    public CheckboxListModel(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
        super(stack, req, res);
    }

    protected Component getBean() {
        return new CheckboxList(stack, req, res);
    }
View Full Code Here

Examples of org.apache.struts2.components.CheckboxList

    public CheckboxListModel(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
        super(stack, req, res);
    }

    protected Component getBean() {
        return new CheckboxList(stack, req, res);
    }
View Full Code Here

Examples of org.apache.struts2.components.CheckboxList

public class CheckboxListTag extends AbstractRequiredListTag {
 
  private static final long serialVersionUID = 4023034029558150010L;

  public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
        return new CheckboxList(stack, req, res);
    }
View Full Code Here

Examples of org.apache.struts2.components.CheckboxList

/**
* @see CheckboxList
*/
public class CheckBoxListDirective extends AbstractDirective {
    protected Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
        return new CheckboxList(stack, req, res);
    }
View Full Code Here

Examples of org.apache.struts2.components.CheckboxList

    public CheckboxListModel(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
        super(stack, req, res);
    }

    protected Component getBean() {
        return new CheckboxList(stack, req, res);
    }
View Full Code Here

Examples of org.apache.struts2.components.CheckboxList

/**
* @see CheckboxList
*/
public class CheckBoxListDirective extends AbstractDirective {
    protected Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
        return new CheckboxList(stack, req, res);
    }
View Full Code Here

Examples of org.apache.struts2.components.CheckboxList

public class CheckboxListTag extends AbstractRequiredListTag {

    private static final long serialVersionUID = 4023034029558150010L;

    public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
        return new CheckboxList(stack, req, res);
    }
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.