/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* <p>These classes are designed to be used while the
* corresponding <code>LookAndFeel</code> class has been installed
* (<code>UIManager.setLookAndFeel(new <i>XXX</i>LookAndFeel())</code>).
* Using them while a different <code>LookAndFeel</code> is installed
* may produce unexpected results, including exceptions.
* Additionally, changing the <code>LookAndFeel</code>
* maintained by the <code>UIManager</code> without updating the
* corresponding <code>ComponentUI</code> of any
* <code>JComponent</code>s may also produce unexpected results,
* such as the wrong colors showing up, and is generally not
* encouraged.
*
*/
/**
* Implements Windows Parts and their States and Properties for the Windows Look and Feel.
*
* See tmschema.h (or vssym32.h & vsstyle.h for MS Vista)
*
* @author Leif Samuelsson
*/
class TMSchema {
/**
* An enumeration of the various Windows controls (also known as
* components, or top-level parts)
*/
public static enum Control {
EDIT,
MENU,
SPIN,
TAB,
}
/**
* An enumeration of the Windows compoent parts
*/
public static enum Part {
private final int value;
}
public int getValue() {
return value;
}
if (component instanceof JComponent) {
if (subAppName != null) {
}
}
}
}
}
/**
* An enumeration of the possible component states
*/
public static enum State {
HOT,
/**
* A map of allowed states for each Part
*/
private static synchronized void initStates() {
new State[] {
});
new State[] {
});
new State[] {
});
new State[] {
});
};
// Note 1: The INACTIVE frame button states apply when the frame
// is inactive. They are not defined in tmschema.h
// Fix for 6316538: Vista has five frame button states
frameButtonStates = new State[] {
};
}
// States for Slider (trackbar)
// States for Tabs
new State[] {
});
}
initStates();
}
return i + 1;
}
}
}
return 1;
}
return 0;
}
}
/**
* An enumeration of the possible component attributes and the
* corresponding value type
*/
public static enum Prop {
private final int value;
}
public int getValue() {
return value;
}
}
}
/**
* An enumeration of attribute values for some Props
*/
public static enum TypeEnum {
}
private final int value;
}
return enumName;
}
return e;
}
}
return null;
}
}
}