Java 类javax.swing.text.html.Option 实例源码

项目:Neukoelln_SER316    文件:AltHTMLWriter.java   
/**
 * Writes out the content of the Option form element.
 * @param option  an Option
 * @exception IOException on any I/O error
 *
 */
protected void writeOption(Option option) throws IOException {

    indent();
    write('<');
    write("option");
    // PENDING: should this be changed to check for null first?
    Object value = option.getAttributes().getAttribute(HTML.Attribute.VALUE);
    if (value != null) {
        write(" value=" + value);
    }
    if (option.isSelected()) {
        write(" selected");
    }
    write('>');
    if (option.getLabel() != null) {
        write(option.getLabel());
    }
    writeLineSeparator();
}
项目:SER316-Dresden    文件:AltHTMLWriter.java   
/**
 * Writes out the content of the Option form element.
 * @param option  an Option
 * @exception IOException on any I/O error
 *
 */
protected void writeOption(Option option) throws IOException {

    indent();
    write('<');
    write("option");
    // PENDING: should this be changed to check for null first?
    Object value = option.getAttributes().getAttribute(HTML.Attribute.VALUE);
    if (value != null) {
        write(" value=" + value);
    }
    if (option.isSelected()) {
        write(" selected");
    }
    write('>');
    if (option.getLabel() != null) {
        write(option.getLabel());
    }
    writeLineSeparator();
}
项目:SER316-Munich    文件:AltHTMLWriter.java   
/**
 * Writes out the content of the Option form element.
 * @param option  an Option
 * @exception IOException on any I/O error
 *
 */
protected void writeOption(Option option) throws IOException {

    indent();
    write('<');
    write("option");
    // PENDING: should this be changed to check for null first?
    Object value = option.getAttributes().getAttribute(HTML.Attribute.VALUE);
    if (value != null) {
        write(" value=" + value);
    }
    if (option.isSelected()) {
        write(" selected");
    }
    write('>');
    if (option.getLabel() != null) {
        write(option.getLabel());
    }
    writeLineSeparator();
}
项目:SER316-Ingolstadt    文件:AltHTMLWriter.java   
/**
 * Writes out the content of the Option form element.
 * @param option  an Option
 * @exception IOException on any I/O error
 *
 */
protected void writeOption(Option option) throws IOException {

    indent();
    write('<');
    write("option");
    // PENDING: should this be changed to check for null first?
    Object value = option.getAttributes().getAttribute(HTML.Attribute.VALUE);
    if (value != null) {
        write(" value=" + value);
    }
    if (option.isSelected()) {
        write(" selected");
    }
    write('>');
    if (option.getLabel() != null) {
        write(option.getLabel());
    }
    writeLineSeparator();
}
项目:Wilmersdorf_SER316    文件:AltHTMLWriter.java   
/**
 * Writes out the content of the Option form element.
 * @param option  an Option
 * @exception IOException on any I/O error
 *
 */
protected void writeOption(Option option) throws IOException {

    indent();
    write('<');
    write("option");
    // PENDING: should this be changed to check for null first?
    Object value = option.getAttributes().getAttribute(HTML.Attribute.VALUE);
    if (value != null) {
        write(" value=" + value);
    }
    if (option.isSelected()) {
        write(" selected");
    }
    write('>');
    if (option.getLabel() != null) {
        write(option.getLabel());
    }
    writeLineSeparator();
}
项目:Reinickendorf_SER316    文件:AltHTMLWriter.java   
/**
 * Writes out the content of the Option form element.
 * @param option  an Option
 * @exception IOException on any I/O error
 *
 */
protected void writeOption(Option option) throws IOException {

    indent();
    write('<');
    write("option");
    // PENDING: should this be changed to check for null first?
    Object value = option.getAttributes().getAttribute(HTML.Attribute.VALUE);
    if (value != null) {
        write(" value=" + value);
    }
    if (option.isSelected()) {
        write(" selected");
    }
    write('>');
    if (option.getLabel() != null) {
        write(option.getLabel());
    }
    writeLineSeparator();
}
项目:Dahlem_SER316    文件:AltHTMLWriter.java   
/**
 * Writes out the content of the Option form element.
 * @param option  an Option
 * @exception IOException on any I/O error
 *
 */
protected void writeOption(Option option) throws IOException {

    indent();
    write('<');
    write("option");
    // PENDING: should this be changed to check for null first?
    Object value = option.getAttributes().getAttribute(HTML.Attribute.VALUE);
    if (value != null) {
        write(" value=" + value);
    }
    if (option.isSelected()) {
        write(" selected");
    }
    write('>');
    if (option.getLabel() != null) {
        write(option.getLabel());
    }
    writeLineSeparator();
}
项目:SER316-Aachen    文件:AltHTMLWriter.java   
/**
 * Writes out the content of the Option form element.
 * @param option  an Option
 * @exception IOException on any I/O error
 *
 */
protected void writeOption(Option option) throws IOException {

    indent();
    write('<');
    write("option");
    // PENDING: should this be changed to check for null first?
    Object value = option.getAttributes().getAttribute(HTML.Attribute.VALUE);
    if (value != null) {
        write(" value=" + value);
    }
    if (option.isSelected()) {
        write(" selected");
    }
    write('>');
    if (option.getLabel() != null) {
        write(option.getLabel());
    }
    writeLineSeparator();
}
项目:spring16project-Modula-2    文件:AltHTMLWriter.java   
/**
 * Writes out the content of the Option form element.
 * @param option  an Option
 * @exception IOException on any I/O error
 *
 */
protected void writeOption(Option option) throws IOException {

    indent();
    write('<');
    write("option");
    // PENDING: should this be changed to check for null first?
    Object value = option.getAttributes().getAttribute(HTML.Attribute.VALUE);
    if (value != null) {
        write(" value=" + value);
    }
    if (option.isSelected()) {
        write(" selected");
    }
    write('>');
    if (option.getLabel() != null) {
        write(option.getLabel());
    }
    writeLineSeparator();
}
项目:spring16project-Fortran    文件:AltHTMLWriter.java   
/**
 * Writes out the content of the Option form element.
 *
 * @param option
 *            an Option
 * @exception IOException
 *                on any I/O error
 *
 */
protected void writeOption(Option option) throws IOException {

    indent();
    write('<');
    write("option");
    // PENDING: should this be changed to check for null first?
    Object value = option.getAttributes().getAttribute(HTML.Attribute.VALUE);
    if (value != null) {
        write(" value=" + value);
    }
    if (option.isSelected()) {
        write(" selected");
    }
    write('>');
    if (option.getLabel() != null) {
        write(option.getLabel());
    }
    writeLineSeparator();
}
项目:javify    文件:HTMLWriter.java   
/**
 * Writes out the contents of a select element.
 *
 * @param attrSet the attrSet of the element to output as a select box
 *
 * @throws IOException on any I/O exceptions
 */
protected void selectContent(AttributeSet attrSet)
  throws IOException
{
  writeLineSeparator(); // Extra formatting to look more like the RI.
  indent();
  writeRaw("<select");
  writeAttributes(attrSet);
  writeRaw(">");
  incrIndent();
  writeLineSeparator(); // extra formatting to look more like the RI.

  ComboBoxModel comboBoxModel =
    (ComboBoxModel) attrSet.getAttribute(StyleConstants.ModelAttribute);

  for (int i = 0; i < comboBoxModel.getSize(); i++)
    {
      writeOption((Option) comboBoxModel.getElementAt(i));
    } // for(int i = 0; i < comboBoxModel.getSize(); i++)

  decrIndent();
  indent();
  writeRaw("</select>");

}
项目:spring16project-Korn    文件:AltHTMLWriter.java   
/**
 * Writes out the content of the Option form element.
 * @param option  an Option
 * @exception IOException on any I/O error
 *
 */
protected void writeOption(Option option) throws IOException {

    indent();
    write('<');
    write("option");
    // PENDING: should this be changed to check for null first?
    Object value = option.getAttributes().getAttribute(HTML.Attribute.VALUE);
    if (value != null) {
        write(" value=" + value);
    }
    if (option.isSelected()) {
        write(" selected");
    }
    write('>');
    if (option.getLabel() != null) {
        write(option.getLabel());
    }
    writeLineSeparator();
}
项目:jvm-stm    文件:HTMLWriter.java   
/**
 * Writes out the contents of a select element.
 *
 * @param attrSet the attrSet of the element to output as a select box
 *
 * @throws IOException on any I/O exceptions
 */
protected void selectContent(AttributeSet attrSet)
  throws IOException
{
  writeLineSeparator(); // Extra formatting to look more like the RI.
  indent();
  writeRaw("<select");
  writeAttributes(attrSet);
  writeRaw(">");
  incrIndent();
  writeLineSeparator(); // extra formatting to look more like the RI.

  ComboBoxModel comboBoxModel =
    (ComboBoxModel) attrSet.getAttribute(StyleConstants.ModelAttribute);

  for (int i = 0; i < comboBoxModel.getSize(); i++)
    {
      writeOption((Option) comboBoxModel.getElementAt(i));
    } // for(int i = 0; i < comboBoxModel.getSize(); i++)

  decrIndent();
  indent();
  writeRaw("</select>");

}
项目:metasfresh    文件:AltHTMLWriter.java   
/**
 * Writes out the content of the Option form element.
 * @param option  an Option
 * @exception IOException on any I/O error
 *
 */
protected void writeOption(Option option) throws IOException {

    indent();
    write('<');
    write("option");
    // PENDING: should this be changed to check for null first?
    Object value = option.getAttributes().getAttribute(HTML.Attribute.VALUE);
    if (value != null) {
        write(" value=" + value);
    }
    if (option.isSelected()) {
        write(" selected");
    }
    write('>');
    if (option.getLabel() != null) {
        write(option.getLabel());
    }
    writeLineSeparator();
}
项目:JamVM-PH    文件:HTMLWriter.java   
/**
 * Writes out the contents of a select element.
 *
 * @param attrSet the attrSet of the element to output as a select box
 *
 * @throws IOException on any I/O exceptions
 */
protected void selectContent(AttributeSet attrSet)
  throws IOException
{
  writeLineSeparator(); // Extra formatting to look more like the RI.
  indent();
  writeRaw("<select");
  writeAttributes(attrSet);
  writeRaw(">");
  incrIndent();
  writeLineSeparator(); // extra formatting to look more like the RI.

  ComboBoxModel comboBoxModel =
    (ComboBoxModel) attrSet.getAttribute(StyleConstants.ModelAttribute);

  for (int i = 0; i < comboBoxModel.getSize(); i++)
    {
      writeOption((Option) comboBoxModel.getElementAt(i));
    } // for(int i = 0; i < comboBoxModel.getSize(); i++)

  decrIndent();
  indent();
  writeRaw("</select>");

}
项目:classpath    文件:HTMLWriter.java   
/**
 * Writes out the contents of a select element.
 *
 * @param attrSet the attrSet of the element to output as a select box
 *
 * @throws IOException on any I/O exceptions
 */
protected void selectContent(AttributeSet attrSet)
  throws IOException
{
  writeLineSeparator(); // Extra formatting to look more like the RI.
  indent();
  writeRaw("<select");
  writeAttributes(attrSet);
  writeRaw(">");
  incrIndent();
  writeLineSeparator(); // extra formatting to look more like the RI.

  ComboBoxModel comboBoxModel =
    (ComboBoxModel) attrSet.getAttribute(StyleConstants.ModelAttribute);

  for (int i = 0; i < comboBoxModel.getSize(); i++)
    {
      writeOption((Option) comboBoxModel.getElementAt(i));
    } // for(int i = 0; i < comboBoxModel.getSize(); i++)

  decrIndent();
  indent();
  writeRaw("</select>");

}
项目:Memoranda    文件:AltHTMLWriter.java   
/**
 * Writes out the content of the Option form element.
 * @param option  an Option
 * @exception IOException on any I/O error
 *
 */
protected void writeOption(Option option) throws IOException {

    indent();
    write('<');
    write("option");
    // PENDING: should this be changed to check for null first?
    Object value = option.getAttributes().getAttribute(HTML.Attribute.VALUE);
    if (value != null) {
        write(" value=" + value);
    }
    if (option.isSelected()) {
        write(" selected");
    }
    write('>');
    if (option.getLabel() != null) {
        write(option.getLabel());
    }
    writeLineSeparator();
}
项目:javify    文件:HTMLWriter.java   
/**
 * Writes out the contents of an option element.
 *
 * @param option the option object to output as a select option
 *
 * @throws IOException on any I/O exceptions
 */
protected void writeOption(Option option)
  throws IOException
{
  indent();
  writeRaw("<option");
  writeAttributes(option.getAttributes());
  writeRaw(">");

  writeContent(option.getLabel());

  writeRaw("</option>");
  writeLineSeparator(); // extra formatting to look more like the RI.

}
项目:jvm-stm    文件:HTMLWriter.java   
/**
 * Writes out the contents of an option element.
 *
 * @param option the option object to output as a select option
 *
 * @throws IOException on any I/O exceptions
 */
protected void writeOption(Option option)
  throws IOException
{
  indent();
  writeRaw("<option");
  writeAttributes(option.getAttributes());
  writeRaw(">");

  writeContent(option.getLabel());

  writeRaw("</option>");
  writeLineSeparator(); // extra formatting to look more like the RI.

}
项目:freemind_1.0.0_20140624_214725    文件:XHTMLWriter.java   
protected void writeOption(Option option) throws IOException {
    writeLineSeparatorEnabled = false;
    super.writeOption(option);
    writeLineSeparatorEnabled = true;
    write("</option>");
    writeLineSeparator();
}
项目:JamVM-PH    文件:HTMLWriter.java   
/**
 * Writes out the contents of an option element.
 *
 * @param option the option object to output as a select option
 *
 * @throws IOException on any I/O exceptions
 */
protected void writeOption(Option option)
  throws IOException
{
  indent();
  writeRaw("<option");
  writeAttributes(option.getAttributes());
  writeRaw(">");

  writeContent(option.getLabel());

  writeRaw("</option>");
  writeLineSeparator(); // extra formatting to look more like the RI.

}
项目:classpath    文件:HTMLWriter.java   
/**
 * Writes out the contents of an option element.
 *
 * @param option the option object to output as a select option
 *
 * @throws IOException on any I/O exceptions
 */
protected void writeOption(Option option)
  throws IOException
{
  indent();
  writeRaw("<option");
  writeAttributes(option.getAttributes());
  writeRaw(">");

  writeContent(option.getLabel());

  writeRaw("</option>");
  writeLineSeparator(); // extra formatting to look more like the RI.

}
项目:freemind    文件:XHTMLWriter.java   
protected void writeOption(Option option) throws IOException {
    writeLineSeparatorEnabled = false;
    super.writeOption(option);
    writeLineSeparatorEnabled = true;
    write("</option>");
    writeLineSeparator();
}
项目:spring16project-Fortran    文件:AltHTMLWriter.java   
/**
 * Stores the Option that has been marked its selected attribute set.
 */
public void setInitialSelection(Option option) {
    selectedOption = option;
}
项目:Neukoelln_SER316    文件:AltHTMLWriter.java   
/**
 * Stores the Option that has been marked its
 * selected attribute set.
 */
public void setInitialSelection(Option option) {
    selectedOption = option;
}
项目:Neukoelln_SER316    文件:AltHTMLWriter.java   
/**
 * Fetches the Option item that represents that was
 * initially set to a selected state.
 */
public Option getInitialSelection() {
    return selectedOption;
}
项目:SER316-Dresden    文件:AltHTMLWriter.java   
/**
 * Stores the Option that has been marked its
 * selected attribute set.
 */
public void setInitialSelection(Option option) {
    selectedOption = option;
}
项目:SER316-Dresden    文件:AltHTMLWriter.java   
/**
 * Fetches the Option item that represents that was
 * initially set to a selected state.
 */
public Option getInitialSelection() {
    return selectedOption;
}
项目:SER316-Munich    文件:AltHTMLWriter.java   
/**
 * Stores the Option that has been marked its
 * selected attribute set.
 */
public void setInitialSelection(Option option) {
    selectedOption = option;
}
项目:SER316-Munich    文件:AltHTMLWriter.java   
/**
 * Fetches the Option item that represents that was
 * initially set to a selected state.
 */
public Option getInitialSelection() {
    return selectedOption;
}
项目:SER316-Ingolstadt    文件:AltHTMLWriter.java   
/**
 * Stores the Option that has been marked its
 * selected attribute set.
 */
public void setInitialSelection(Option option) {
    selectedOption = option;
}
项目:SER316-Ingolstadt    文件:AltHTMLWriter.java   
/**
 * Fetches the Option item that represents that was
 * initially set to a selected state.
 */
public Option getInitialSelection() {
    return selectedOption;
}
项目:Wilmersdorf_SER316    文件:AltHTMLWriter.java   
/**
 * Stores the Option that has been marked its
 * selected attribute set.
 */
public void setInitialSelection(Option option) {
    selectedOption = option;
}
项目:Wilmersdorf_SER316    文件:AltHTMLWriter.java   
/**
 * Fetches the Option item that represents that was
 * initially set to a selected state.
 */
public Option getInitialSelection() {
    return selectedOption;
}
项目:Reinickendorf_SER316    文件:AltHTMLWriter.java   
/**
 * Stores the Option that has been marked its
 * selected attribute set.
 */
public void setInitialSelection(Option option) {
    selectedOption = option;
}
项目:Reinickendorf_SER316    文件:AltHTMLWriter.java   
/**
 * Fetches the Option item that represents that was
 * initially set to a selected state.
 */
public Option getInitialSelection() {
    return selectedOption;
}
项目:Dahlem_SER316    文件:AltHTMLWriter.java   
/**
 * Stores the Option that has been marked its
 * selected attribute set.
 */
public void setInitialSelection(Option option) {
    selectedOption = option;
}
项目:Dahlem_SER316    文件:AltHTMLWriter.java   
/**
 * Fetches the Option item that represents that was
 * initially set to a selected state.
 */
public Option getInitialSelection() {
    return selectedOption;
}
项目:SER316-Aachen    文件:AltHTMLWriter.java   
/**
 * Stores the Option that has been marked its
 * selected attribute set.
 */
public void setInitialSelection(Option option) {
    selectedOption = option;
}
项目:SER316-Aachen    文件:AltHTMLWriter.java   
/**
 * Fetches the Option item that represents that was
 * initially set to a selected state.
 */
public Option getInitialSelection() {
    return selectedOption;
}