Package DisplayProject

Examples of DisplayProject.RadioList


              else if (newComponent instanceof PaletteList) {
                PaletteList list = (PaletteList)newComponent;
                topLevelManager.bindComponent(list, BindingManager.getDataObjectPath(origComponent), ElementList.get(list));
              }
              else if (newComponent instanceof RadioList) {
                RadioList list = (RadioList)newComponent;
                topLevelManager.bindComponent(list, BindingManager.getDataObjectPath(origComponent), ElementList.get(list));
              }
              else if (newComponent instanceof JScrollBar) {
                JScrollBar bar = (JScrollBar)newComponent;
                topLevelManager.bindComponent(bar, BindingManager.getDataObjectPath(origComponent),
View Full Code Here


    public static ScrollList newScrollList(){
        ScrollList jl = new ScrollList();
        return jl;
    }
    public static RadioList newRadioList(int xy, RadioListModel l, String caption){
        RadioList rl = new RadioList(xy, l, caption);
        l.setRadioList(rl);
        return rl;
    }
View Full Code Here

        l.setRadioList(rl);
        return rl;
    }

    public static RadioList newRadioList(int xy, String caption){
        RadioList rl = new RadioList(xy, caption);
        return rl;
    }
View Full Code Here

        RadioList rl = new RadioList(xy, caption);
        return rl;
    }

    public static RadioList newRadioList(int xy, String caption, String[] pNamesForVisualEditor, int pWrapSize, int pLayoutPolicy){
        RadioList rl = new RadioList(xy, caption, pNamesForVisualEditor, pWrapSize, pLayoutPolicy);
        return rl;
    }   
View Full Code Here

    public RadioListCellRenderer(RadioList radioList)
    {
        super();
        this.radioListOriginal = radioList;
        this.radioList = new RadioList(radioList.getOrientation(), radioList.getCaption().toString());
        ArrayFieldCellHelper.setUpCellRenderer(radioList, this.radioList); // CraigM: 28/03/2008
        this.radioList.setOrientation(radioList.getOrientation());
        this.radioList.setWrapSize(radioList.getWrapSize());
        this.radioList.setElementList(this.radioList.getElementList());
        this.radioList.setModel(radioList.getModel());
View Full Code Here

    int height = this.radioListOriginal.getMinimumSize().height;
    // TF:27/11/2009:Changed this to use the passed width
//    int width = this.radioListOriginal.getMinimumSize().width;

    if (this.radioListPainter == null) {
          this.radioListPainter = new RadioList(this.radioListOriginal.getOrientation(), this.radioListOriginal.getCaption().toString());
          this.radioListPainter.setWrapSize(this.radioListOriginal.getWrapSize());
          this.radioListPainter.setElementList(this.radioListOriginal.getElementList());
          this.radioListPainter.setModel(this.radioListOriginal.getModel());
    }
    this.radioListPainter.setForeground(this.radioListOriginal.getForeground());
View Full Code Here

    }

    public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) {
        Component result = super.getTableCellEditorComponent(table, value, isSelected, row, column);
        if (result instanceof RadioList && isSelected) {
            RadioList rl = (RadioList)result;

            // CraigM:05/08/2008 - Java changes the colours for us, so don't do this.
//            if (isSelected)
//            {
//                rl.setForeground(table.getSelectionForeground());
//                rl.setBackground(table.getSelectionBackground());
//            }
//            else
//            {
//                rl.setBackground(table.getBackground()); //PM:27/9/07
//                rl.setForeground(table.getForeground()); //PM:27/9/07
//            }

            if (value instanceof Integer)
                ((RadioListModel)rl.getModel()).setIntegerValue(((Integer)value).intValue());
            else if (value instanceof IntegerData)
                // Cater for null values. CraigM. 07/08/2007
                if (((IntegerData)value).isNull()) {
                    rl.clearSelection();
                }
                else {
                    ((RadioListModel)rl.getModel()).setIntegerValue(((IntegerData)value).intValue());
                }
            else if (value instanceof TextData)
                ((RadioListModel)rl.getModel()).setTextValue((TextData)value);
            else if (value instanceof String)
                ((RadioListModel)rl.getModel()).setTextValue(new TextData((String)value));
            else
                ((RadioListModel)rl.getModel()).setObjectValue(value);
        }
        return result;
    }
View Full Code Here

TOP

Related Classes of DisplayProject.RadioList

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.