示例#1
0
 public void setCurrent(Displayable nextDisplayable)
 {
     if (this.current != null)
     {
         this.current.hideNotify();
     }
     this.current = nextDisplayable;
     if (this.current == null)
     {
         return;
     }
     this.current.currentDisplay = this;
     this.current.showNotify();
 }
示例#2
0
 public TextBox(string title, string text, int maxSize, int constraints, int flags)
 {
     this.m_title          = (string)null;
     this.m_text           = (string)null;
     this.m_maxSize        = 0;
     this.m_constraints    = 0;
     this.m_flags          = flags;
     this.m_implementation = new TextBoxImplementation((TextBox)null);
     this.m_returnTo       = (Displayable)null;
     this.setTitle(title);
     this.setString(text);
     this.setMaxSize(maxSize);
     this.setFlags(flags);
     this.setConstraints(constraints);
     this.m_implementation = TextBox.getImplementation(this);
 }
示例#3
0
 public void show(Display display)
 {
     this.m_returnTo = display.getCurrent();
     display.setCurrent((Displayable)this);
 }