Package com.google.gdt.eclipse.designer.gxt.model.property

Examples of com.google.gdt.eclipse.designer.gxt.model.property.Margins


    @Override
    public void showValue() {
      Object value = getValue();
      int all = 0;
      if (Margins.isMargins(value)) {
        Margins marginsValue = new Margins(value);
        m_topSpinner.setSelection(marginsValue.top);
        m_rightSpinner.setSelection(marginsValue.right);
        m_bottomSpinner.setSelection(marginsValue.bottom);
        m_leftSpinner.setSelection(marginsValue.left);
        //
View Full Code Here


      m_allSpinner.setSelection(all);
    }

    @Override
    protected void doSaveValue() {
      Margins marginsValue = new Margins();
      marginsValue.top = m_topSpinner.getSelection();
      marginsValue.right = m_rightSpinner.getSelection();
      marginsValue.bottom = m_bottomSpinner.getSelection();
      marginsValue.left = m_leftSpinner.getSelection();
      setValue(marginsValue);
View Full Code Here

TOP

Related Classes of com.google.gdt.eclipse.designer.gxt.model.property.Margins

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.