<?xml version="1.0" encoding="utf-8" ?>

<!--
 * @(#)JToggleButton.xml
 *
 * Copyright: Yokogawa, All rights reserved.
 * YOKOGAWA PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 *
 * Author:    C. Horevoorts
 *
 * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 *  Changes ....
 * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 *  Who When    Change  What
 * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 *  BNL Aug-10  e10330  Add localization for component type tooltips
 *  BNL Jun-12  e10657  Basic/Advanced Properties
 *  BNL Jul-18  e11986  Edit Module HTML Mode
 *  BNL Feb-19  e11986  Disallow connection to positional properties in HTML mode
 *  HVS Jun-20  e12272  Port to JViews 2017.2
 *
-->

<componentType name="toggleButton"
  containedBy="JComponent"
  icon="stock_form-toggle-button-16.png"
  description="ToggleButton"
  class="fasttools.jwui.ilv.graphic.ExtendedJToggleButton"
  paletteOrder="131">

  <category name="General">
    <property name="name" type="java.lang.String" defaultAllowed="no" connectAllowed="no" advanced="yes"/>
    <property name="toolTipText" type="java.lang.String" defaultAllowed="no" localized="yes" description="This is the tooltip text"/>
  </category>

  <category name="Transformation">
    <property name="x" type="double" defaultAllowed="no" setter="setXAsFloat" getter="getXAsFloat" advanced="yes" html="noConnect"/>
    <property name="y" type="double" defaultAllowed="no" setter="setYAsFloat" getter="getYAsFloat" advanced="yes" html="noConnect"/>
    <property name="top" type="double" defaultAllowed="no" advanced="yes" html="noConnect"/>
    <property name="bottom" type="double" defaultAllowed="no" advanced="yes" html="noConnect"/>
    <property name="left" type="double" defaultAllowed="no" advanced="yes" html="noConnect"/>
    <property name="right" type="double" defaultAllowed="no" advanced="yes" html="noConnect"/>
    <property name="rotation" type="double" defaultAllowed="no"/>
    <property name="shear" type="double" defaultAllowed="no" advanced="yes"/>
  </category>

  <category name="Visibility">
    <property name="transparency" type="float"/>
    <property name="visible" type="boolean" setter="setVisibleAsBoolean" getter="isVisibleAsBoolean"/>
  </category>

  <category name="Colors">
    <property name="foregroundColor" type="fasttools.jtools.common.property.color.ColorSet" null="default"/>
    <property name="backgroundColor" type="fasttools.jtools.common.property.color.ColorSet" null="default"/>
  </category>

  <category name="Value">
    <property name="enabled" type="boolean"/>
    <property name="value" type="boolean" bound="yes" setter="setValue" getter="getValue"/>
  </category>

  <category name="Style">
    <property name="font" type="fasttools.jtools.common.property.font.FontSet" null="default"
      setter="setFontSet" getter="getFontSet"/>
    <property name="margin" type="int" setter="setMarginAsInt" getter="getMarginAsInt" html="no"/>
    <property name="rolloverEnabled" type="boolean"/>
    <property name="inverted" type="boolean"/>
    <property name="label" type="java.lang.String" localized="yes" setter="setLabelText" getter="getLabelText"/>
  </category>

  <category name="Zooming">
    <property name="zoomEnabled" type="boolean" html="no"/>
    <property name="zoomFactor" type="float" advanced="yes" html="no"/>
  </category>

  <category name="Icons">
    <property name="icon" type="fasttools.jtools.common.property.icon.IconSet" null="none"
      setter="setIconSet" getter="getIconSet"/>
    <property name="rolloverIcon" type="fasttools.jtools.common.property.icon.IconSet" null="none"
      setter="setRolloverIconSet" getter="getRolloverIconSet" advanced="yes"/>
    <property name="rolloverSelectedIcon" type="fasttools.jtools.common.property.icon.IconSet" null="none"
      setter="setRolloverSelectedIconSet" getter="getRolloverSelectedIconSet" advanced="yes"/>
    <property name="disabledIcon" type="fasttools.jtools.common.property.icon.IconSet" null="none"
      setter="setDisabledIconSet" getter="getDisabledIconSet" advanced="yes"/>
    <property name="disabledSelectedIcon" type="fasttools.jtools.common.property.icon.IconSet" null="none"
      setter="setDisabledSelectedIconSet" getter="getDisabledSelectedIconSet" advanced="yes"/>
    <property name="selectedIcon" type="fasttools.jtools.common.property.icon.IconSet" null="none"
      setter="setSelectedIconSet" getter="getSelectedIconSet" advanced="yes"/>
    <property name="iconTextGap" type="int" advanced="yes"/>
    <property name="iconPosition" type="fasttools.jwui.common.property.JIconPositionType"/>
  </category>

  <category name="Misc">
    <property name="linkPins" type="fasttools.jwui.common.property.linkpins.LinkPinsSet" defaultAllowed="no" connectAllowed="no" advanced="yes" html="no"/>
    <property name="blinking" type="boolean"/>
    <property name="blinkingForegroundColor" type="fasttools.jtools.common.property.color.ColorSet" null="none" advanced="yes"/>
    <property name="blinkingBackgroundColor" type="fasttools.jtools.common.property.color.ColorSet" null="none" advanced="yes"/>
  </category>
</componentType>