Display the target html in the pane.
428847
public void run()
    {
        if ((m_url == null) && (m_strHtmlText == null))
        {   // restore the original cursor
            if (m_bChangeCursor)
            {
                if (m_applet != null)
                    m_applet.setStatus(0, m_editorPane, m_oldCursor);
                else
                {
                	Component component = m_editorPane;
                	while (component.getParent() != null)
                	{
                		component = component.getParent();
                	}
                    component.setCursor((Cursor)m_oldCursor);
                }
                Container parent = m_editorPane.getParent();
                parent.repaint();
            }
        }
        else
        {
            if (m_bChangeCursor)
            {
                if (m_applet != null)
                    m_oldCursor = m_applet.setStatus(Cursor.WAIT_CURSOR, m_editorPane, null);
                else
                {
                	Component component = m_editorPane;
                	boolean bIsVisible = true;
                	while (component.getParent() != null)
                	{
                		component = component.getParent();
                		if (!component.isVisible())
                			bIsVisible = false;
                	}
                	m_oldCursor = component.getCursor();
                    Cursor cursor = Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR);
                    if (bIsVisible)
                    	component.setCursor(cursor);
                }
            }
            
            synchronized (m_editorPane)
            {
                Document doc = m_editorPane.getDocument();
                try {
                    if (m_url != null) {
                        m_editorPane.setPage(m_url);
                    } else {
                    	this.setText(doc, m_strHtmlText);
                    }
                } catch (IOException ioe) {
                	String error = ioe.getLocalizedMessage();
                	if ((error != null)
                		&& (error.length() > 0))
                	{
                		String errorText = m_strHtmlErrorText;
                		if (errorText == null)
                			errorText = DEFAULT_ERROR_TEXT;
                		errorText = MessageFormat.format(errorText, m_url.toString(), error);
                    	this.setText(doc, errorText);
                	}
                	else
                		m_editorPane.setDocument(doc);
                    // getToolkit().beep();
                } finally {
                    // schedule the cursor to revert after
                    // the paint has happened.
                    m_url = null;
                    m_strHtmlText = null;
                    if (m_bChangeCursor)
                        SwingUtilities.invokeLater(this);
                }
            }
        }
    }
336452
public function display()
    {
        if (!$this->visible) {
            return;
        }

        SwatWidget::display();

        // tree is copied for display so we can add a blank node if show_blank
        // is true
        $display_tree = $this->getDisplayTree();
        $count = count($display_tree) - 1;

        // only show a select if there is more than one option
        if ($count > 1) {
            $select_tag = new SwatHtmlTag('select');
            $select_tag->name = $this->id;
            $select_tag->id = $this->id;
            $select_tag->class = $this->getCSSClassString();

            if (!$this->isSensitive()) {
                $select_tag->disabled = 'disabled';
            }

            $select_tag->open();

            foreach ($display_tree->getChildren() as $child) {
                $this->displayNode($child, 1);
            }

            $select_tag->close();
        } elseif ($count === 1) {
            // get first and only element
            $children = $display_tree->getChildren();
            $option = reset($children)->getOption();
            $this->displaySingle($option);
        }
    }
618844
def display_view(self):
        """"""
        self.idx_start.setText(str(self.parent.value('window_start')))
        self.idx_length.setText(str(self.parent.value('window_length')))
        self.idx_scaling.setText(str(self.parent.value('y_scale')))
        self.idx_distance.setText(str(self.parent.value('y_distance')))
860856
def _display(node, indent, expandattrs, expandvals, output):
    """"""
    attrs = _displayattrs(node.attrib, expandattrs)
    if node.text is None or not expandvals:
        val = ''
    elif isinstance(node.text, str):
        val = ' %s' % repr(node.text.strip())
    else:
        val = ' %s' % repr(node.text)  # node.text can be a tuple
    output.write(encode(indent + striptag(node.tag) + attrs + val + '\n'))
    for sub_node in node:
        _display(sub_node, indent + '  ', expandattrs, expandvals, output)
1264330
def display(self, content = None, **settings):
        
        sys.stdout.write("\r")
        sys.stdout.write(self.render(content, **settings))
        sys.stdout.flush()
1269896
protected function displayText()
    {
        if ($this->text === null) {
            // still show an empty span if there is no text for this
            // progress bar
            $text = '';
        } else {
            if ($this->text_value === null) {
                $text = $this->text;
            } elseif (is_array($this->text_value)) {
                $text = vsprintf($this->text, $this->text_value);
            } else {
                $text = sprintf($this->text, $this->text_value);
            }
        }

        $span_tag = new SwatHtmlTag('span');
        $span_tag->id = $this->id . '_text';
        $span_tag->class = 'swat-progress-bar-text';
        $span_tag->setContent($text, $this->content_type);
        $span_tag->display();
    }
11811
public function display()
    {
        if (!$this->visible) {
            return;
        }

        if ($this->getMessageCount() === 0) {
            return;
        }

        parent::display();

        $wrapper_div = new SwatHtmlTag('div');
        $wrapper_div->id = $this->id;
        $wrapper_div->class = $this->getCSSClassString();
        $wrapper_div->open();

        $has_dismiss_link = false;

        $message_count = count($this->display_messages);

        $count = 1;
        foreach ($this->display_messages as $key => $message) {
            if (in_array($key, $this->dismissable_messages)) {
                $has_dismiss_link = true;
            }

            $first = $count === 1;
            $last = $count === $message_count;

            $this->displayMessage($key, $message, $first, $last);

            $count++;
        }

        $wrapper_div->close();

        if ($has_dismiss_link) {
            Swat::displayInlineJavaScript($this->getInlineJavaScript());
        }
    }
11750
private void showTab() {
		if (parentTab != null) {
			tab = parentTab.getTab(this);
			if (tab != null) {
				// FIXME: this should be added by the constructor or by the panel that adds this
				// tab
				// tab.getComponent().addStyleName("example-queries-tab");
				tab.setEnabled(true);

				if (!(parentTab.getSelectedTab() instanceof ResultViewPanel)) {
					parentTab.setSelectedTab(tab);
				}
			}
		}

	}
503632
def show(cls):
        
        cls.div_el.style.display = "block"
        cls.hide_errors()

        cls.overlay.show()
        cls.overlay.el.bind("click", lambda x: cls.hide())
682400
public void show (Popups.Position pos, Widget target)
    {
        Popups.show(this, pos, target);
    }
571474
public function display()
    {
        if (!$this->visible) {
            return;
        }

        $div_tag = new SwatHtmlTag('div');
        $div_tag->id = $this->id;
        $div_tag->class = $this->getCSSClassString();
        $div_tag->open();
        parent::display();
        $div_tag->close();
    }
403326
public function display()
    {
        if (!$this->visible) {
            return;
        }

        parent::display();

        $input_tag = new SwatHtmlTag('input');
        $input_tag->type = 'file';
        $input_tag->name = $this->id;
        $input_tag->id = $this->id;
        $input_tag->class = $this->getCSSClassString();
        $input_tag->accesskey = $this->access_key;
        $input_tag->tabindex = $this->tab_index;
        $input_tag->size = $this->size;

        // note: the 'accept' attribute is part of the w3c standard, but
        //       is ignored by most browsers
        if ($this->accept_mime_types !== null) {
            $input_tag->accept = implode(',', $this->accept_mime_types);
        }

        if (!$this->isSensitive()) {
            $input_tag->disabled = 'disabled';
        }

        $input_tag->display();

        if ($this->display_maximum_upload_size) {
            $div_tag = new SwatHtmlTag('div');
            $div_tag->class = 'swat-note';
            $div_tag->setContent($this->getMaximumUploadSizeText());
            $div_tag->display();
        }
    }
724443
public function display()
    {
        if (!$this->visible) {
            return;
        }

        if (!$this->isPreviewDisplayable()) {
            parent::display();
        } else {
            if ($this->link !== null) {
                $tag = new SwatHtmlTag('a');
                if ($this->link_value === null) {
                    $tag->href = $this->link;
                } elseif (is_array($this->link_value)) {
                    $tag->href = vsprintf($this->link, $this->link_value);
                } else {
                    $tag->href = sprintf($this->link, $this->link_value);
                }
            } else {
                $tag = new SwatHtmlTag('span');
            }

            $tag->id = $this->id . '_wrapper';
            $tag->title = $this->title;

            if ($this->show_icon) {
                $tag->class = 'swat-image-preview-display-link';
            } else {
                $tag->class = 'swat-image-preview-display-link-plain';
            }

            $tag->open();
            parent::display();
            $tag->close();

            Swat::displayInlineJavaScript($this->getInlineJavaScript());
        }
    }
164183
public function display()
    {
        if (!$this->visible) {
            return;
        }

        parent::display();

        $flydown = $this->getCompositeWidget('action_flydown');
        foreach ($this->action_items as $item) {
            if ($item->visible) {
                if ($item instanceof SwatActionItemDivider) {
                    $flydown->addDivider();
                } else {
                    $flydown->addOption($item->id, $item->title);
                }
            }
        }

        // set the flydown back to its initial state (no persistence). The
        // flydown is never reset if there is a selected item and the selected
        // items has a widget with one or more messages.
        if (
            $this->auto_reset &&
            ($this->selected === null ||
                $this->selected->widget === null ||
                !$this->selected->widget->hasMessage())
        ) {
            $flydown->reset();
        }

        // select the current action item based upon the flydown value
        if (isset($this->action_items_by_id[$flydown->value])) {
            $this->selected = $this->action_items_by_id[$flydown->value];
        } else {
            $this->selected = null;
        }

        $div_tag = new SwatHtmlTag('div');
        $div_tag->id = $this->id;
        $div_tag->class = $this->getCSSClassString();
        $div_tag->open();

        echo '<div class="swat-actions-controls">';

        $label = new SwatHtmlTag('label');
        $label->for = $flydown->getFocusableHtmlId();
        $label->setContent(Swat::_('Action: '));
        $label->display();

        $flydown->display();
        echo ' ';
        $this->displayButton();

        echo '</div>';

        foreach ($this->action_items as $item) {
            if ($item->widget !== null) {
                $div = new SwatHtmlTag('div');

                $div->class =
                    $item == $this->selected ? 'swat-visible' : 'swat-hidden';

                $div->id = $this->id . '_' . $item->id;

                $div->open();
                $item->display();
                $div->close();
            }
        }

        echo '<div class="swat-actions-note">';
        echo Swat::_('Actions apply to checked items.');
        echo '</div>';

        $div_tag->close();

        Swat::displayInlineJavaScript($this->getInlineJavaScript());
    }
572695
protected void loadPage(JEditorPane pane, HyperlinkEvent evt)
    {
        // if some security, or other interaction is needed, override this
        // method
        try
        {
            pane.setPage(evt.getURL());
        } catch (IOException e)
        {
            System.err.println(e.getLocalizedMessage());
        }
    }
1341704
public void displayFrameSet() throws IOException {

        if (getJsp().getRequest().getParameter(CmsListExplorerFrameset.PARAM_PAGE) != null) {
            int page = Integer.parseInt(getJsp().getRequest().getParameter(CmsListExplorerFrameset.PARAM_PAGE));
            getSettings().setExplorerPage(page);

            if (getSettings().getCollector() instanceof I_CmsListResourceCollector) {
                I_CmsListResourceCollector collector = (I_CmsListResourceCollector)getSettings().getCollector();
                collector.setPage(page);
            }
        }
        JspWriter out = getJsp().getJspContext().getOut();
        out.print(defaultActionHtml());
    }
802110
public function renderContentBegin()
    {
        echo CHtml::openTag('div', $this->htmlContentOptions);
        if (!empty($this->content)) {
            echo $this->content;
        }
    }