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(); }
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); }
public void show(Display display) { this.m_returnTo = display.getCurrent(); display.setCurrent((Displayable)this); }