示例#1
0
 /**
  * return a string representation of this MControl by including the control's type and name as
  * specified in the skin definition file.
  */
 @Override
 public String toString() {
   if (delegate != null && delegate.getCtrlDef() != null) {
     return delegate.getCtrlDef().fullName + ": " + super.toString();
   }
   return super.toString();
 }
示例#2
0
 /** Create a new MLED from the given delegate */
 public MLED(ControlDelegate delegate) {
   super();
   this.delegate = delegate;
   delegate.setOwner(this);
   setBounds(delegate.getCtrlDef().targetBounds.getRectangle());
   setOpaque(true);
 }