Merge
This commit is contained in:
commit
9f70b96c91
@ -370,7 +370,57 @@ int NET_Accept(int s, struct sockaddr *addr, int *addrlen) {
|
||||
}
|
||||
|
||||
int NET_Connect(int s, struct sockaddr *addr, int addrlen) {
|
||||
BLOCKING_IO_RETURN_INT( s, connect(s, addr, addrlen) );
|
||||
int crc = -1, prc = -1;
|
||||
threadEntry_t self;
|
||||
fdEntry_t* fdEntry = getFdEntry(s);
|
||||
|
||||
if (fdEntry == NULL) {
|
||||
errno = EBADF;
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* On AIX, when the system call connect() is interrupted, the connection
|
||||
* is not aborted and it will be established asynchronously by the kernel.
|
||||
* Hence, no need to restart connect() when EINTR is received
|
||||
*/
|
||||
startOp(fdEntry, &self);
|
||||
crc = connect(s, addr, addrlen);
|
||||
endOp(fdEntry, &self);
|
||||
|
||||
if (crc == -1 && errno == EINTR) {
|
||||
struct pollfd s_pollfd;
|
||||
int sockopt_arg = 0;
|
||||
socklen_t len;
|
||||
|
||||
s_pollfd.fd = s;
|
||||
s_pollfd.events = POLLOUT | POLLERR;
|
||||
|
||||
/* poll the file descriptor */
|
||||
do {
|
||||
startOp(fdEntry, &self);
|
||||
prc = poll(&s_pollfd, 1, -1);
|
||||
endOp(fdEntry, &self);
|
||||
} while (prc == -1 && errno == EINTR);
|
||||
|
||||
if (prc < 0)
|
||||
return prc;
|
||||
|
||||
len = sizeof(sockopt_arg);
|
||||
|
||||
/* Check whether the connection has been established */
|
||||
if (getsockopt(s, SOL_SOCKET, SO_ERROR, &sockopt_arg, &len) == -1)
|
||||
return -1;
|
||||
|
||||
if (sockopt_arg != 0 ) {
|
||||
errno = sockopt_arg;
|
||||
return -1;
|
||||
}
|
||||
} else {
|
||||
return crc;
|
||||
}
|
||||
|
||||
/* At this point, fd is connected. Set successful return code */
|
||||
return 0;
|
||||
}
|
||||
|
||||
int NET_Poll(struct pollfd *ufds, unsigned int nfds, int timeout) {
|
||||
|
@ -523,7 +523,7 @@ public final class LWCToolkit extends LWToolkit {
|
||||
* that is used for menu shortcuts on this toolkit.
|
||||
* @see java.awt.MenuBar
|
||||
* @see java.awt.MenuShortcut
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
@Override
|
||||
public int getMenuShortcutKeyMask() {
|
||||
|
@ -839,7 +839,7 @@ class ConstantPool {
|
||||
return parts;
|
||||
}
|
||||
|
||||
/** @since JDK 7, JSR 292 */
|
||||
/** @since 1.7, JSR 292 */
|
||||
public static
|
||||
class MethodHandleEntry extends Entry {
|
||||
final int refKind;
|
||||
@ -889,7 +889,7 @@ class ConstantPool {
|
||||
}
|
||||
}
|
||||
|
||||
/** @since JDK 7, JSR 292 */
|
||||
/** @since 1.7, JSR 292 */
|
||||
public static
|
||||
class MethodTypeEntry extends Entry {
|
||||
final SignatureEntry typeRef;
|
||||
@ -924,7 +924,7 @@ class ConstantPool {
|
||||
}
|
||||
}
|
||||
|
||||
/** @since JDK 7, JSR 292 */
|
||||
/** @since 1.7, JSR 292 */
|
||||
public static
|
||||
class InvokeDynamicEntry extends Entry {
|
||||
final BootstrapMethodEntry bssRef;
|
||||
@ -977,7 +977,7 @@ class ConstantPool {
|
||||
}
|
||||
}
|
||||
|
||||
/** @since JDK 7, JSR 292 */
|
||||
/** @since 1.7, JSR 292 */
|
||||
public static
|
||||
class BootstrapMethodEntry extends Entry {
|
||||
final MethodHandleEntry bsmRef;
|
||||
|
@ -97,7 +97,7 @@ http://www.ietf.org/rfc/rfc2616.txt
|
||||
</ul>
|
||||
|
||||
<li>
|
||||
@since JDK1.5.0</li>
|
||||
@since 1.5</li>
|
||||
|
||||
<br><!-- Put @see and @since tags down here. -->
|
||||
</body>
|
||||
|
@ -562,7 +562,7 @@ public class Introspector {
|
||||
}
|
||||
if (readMethod != null) {
|
||||
ReflectUtil.checkPackageAccess(readMethod.getDeclaringClass());
|
||||
return MethodUtil.invoke(readMethod, complex, new Class[0]);
|
||||
return MethodUtil.invoke(readMethod, complex, new Class<?>[0]);
|
||||
}
|
||||
|
||||
throw new AttributeNotFoundException(
|
||||
|
@ -757,7 +757,7 @@ public class MBeanInstantiator {
|
||||
}
|
||||
}
|
||||
|
||||
private static void ensureClassAccess(Class clazz)
|
||||
private static void ensureClassAccess(Class<?> clazz)
|
||||
throws IllegalAccessException
|
||||
{
|
||||
int mod = clazz.getModifiers();
|
||||
|
@ -58,7 +58,7 @@ public abstract class ClientNotifForwarder {
|
||||
|
||||
private final AccessControlContext acc;
|
||||
|
||||
public ClientNotifForwarder(Map env) {
|
||||
public ClientNotifForwarder(Map<String, ?> env) {
|
||||
this(null, env);
|
||||
}
|
||||
|
||||
|
@ -310,10 +310,10 @@ public class MBeanServerFileAccessController
|
||||
}
|
||||
});
|
||||
if (s == null) return; /* security has not been enabled */
|
||||
final Set principals = s.getPrincipals();
|
||||
final Set<Principal> principals = s.getPrincipals();
|
||||
String newPropertyValue = null;
|
||||
for (Iterator i = principals.iterator(); i.hasNext(); ) {
|
||||
final Principal p = (Principal) i.next();
|
||||
for (Iterator<Principal> i = principals.iterator(); i.hasNext(); ) {
|
||||
final Principal p = i.next();
|
||||
Access access = accessMap.get(p.getName());
|
||||
if (access != null) {
|
||||
boolean ok;
|
||||
|
@ -535,7 +535,7 @@ final class SnmpRequestTree {
|
||||
|
||||
// Save old vectors
|
||||
SnmpOid[] olde = entryoids;
|
||||
Vector[] oldl = entrylists;
|
||||
Vector<SnmpVarBind>[] oldl = entrylists;
|
||||
boolean[] oldn = isentrynew;
|
||||
SnmpVarBind[] oldr = rowstatus;
|
||||
|
||||
|
@ -212,7 +212,7 @@ import javax.management.DynamicMBean;
|
||||
* {@linkplain javax.management.Notification#getUserData() userData} that
|
||||
* is the new {@code MBeanInfo}.
|
||||
*
|
||||
* @since 8
|
||||
* @since 1.8
|
||||
*/
|
||||
public interface DiagnosticCommandMBean extends DynamicMBean
|
||||
{
|
||||
|
@ -7697,7 +7697,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
|
||||
* @param columnIndex the first column is 1, the second is 2, ...
|
||||
* @return a SQLXML object that maps an SQL XML value
|
||||
* @throws SQLException if a database access error occurs
|
||||
* @since 6.0
|
||||
* @since 1.6
|
||||
*/
|
||||
public SQLXML getSQLXML(int columnIndex) throws SQLException {
|
||||
throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("cachedrowsetimpl.opnotysupp").toString());
|
||||
@ -7723,7 +7723,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
|
||||
* @return the column value if the value is a SQL <code>NULL</code> the
|
||||
* value returned is <code>null</code>
|
||||
* @throws SQLException if a database access error occurs
|
||||
* @since 6.0
|
||||
* @since 1.6
|
||||
*/
|
||||
public RowId getRowId(int columnIndex) throws SQLException {
|
||||
throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("cachedrowsetimpl.opnotysupp").toString());
|
||||
@ -7738,7 +7738,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
|
||||
* @return the column value if the value is a SQL <code>NULL</code> the
|
||||
* value returned is <code>null</code>
|
||||
* @throws SQLException if a database access error occurs
|
||||
* @since 6.0
|
||||
* @since 1.6
|
||||
*/
|
||||
public RowId getRowId(String columnName) throws SQLException {
|
||||
throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("cachedrowsetimpl.opnotysupp").toString());
|
||||
@ -7754,7 +7754,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
|
||||
* @param columnIndex the first column is 1, the second 2, ...
|
||||
* @param x the column value
|
||||
* @throws SQLException if a database access occurs
|
||||
* @since 6.0
|
||||
* @since 1.6
|
||||
*/
|
||||
public void updateRowId(int columnIndex, RowId x) throws SQLException {
|
||||
throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("cachedrowsetimpl.opnotysupp").toString());
|
||||
@ -7770,7 +7770,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
|
||||
* @param columnName the name of the column
|
||||
* @param x the column value
|
||||
* @throws SQLException if a database access occurs
|
||||
* @since 6.0
|
||||
* @since 1.6
|
||||
*/
|
||||
public void updateRowId(String columnName, RowId x) throws SQLException {
|
||||
throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("cachedrowsetimpl.opnotysupp").toString());
|
||||
@ -7780,7 +7780,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
|
||||
* Retrieves the holdability of this ResultSet object
|
||||
* @return either ResultSet.HOLD_CURSORS_OVER_COMMIT or ResultSet.CLOSE_CURSORS_AT_COMMIT
|
||||
* @throws SQLException if a database error occurs
|
||||
* @since 6.0
|
||||
* @since 1.6
|
||||
*/
|
||||
public int getHoldability() throws SQLException {
|
||||
throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("cachedrowsetimpl.opnotysupp").toString());
|
||||
@ -7791,7 +7791,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
|
||||
* method close has been called on it, or if it is automatically closed.
|
||||
* @return true if this ResultSet object is closed; false if it is still open
|
||||
* @throws SQLException if a database access error occurs
|
||||
* @since 6.0
|
||||
* @since 1.6
|
||||
*/
|
||||
public boolean isClosed() throws SQLException {
|
||||
throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("cachedrowsetimpl.opnotysupp").toString());
|
||||
@ -7803,7 +7803,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
|
||||
* @param columnIndex the first column is 1, the second 2, ...
|
||||
* @param nString the value for the column to be updated
|
||||
* @throws SQLException if a database access error occurs
|
||||
* @since 6.0
|
||||
* @since 1.6
|
||||
*/
|
||||
public void updateNString(int columnIndex, String nString) throws SQLException {
|
||||
throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("cachedrowsetimpl.opnotysupp").toString());
|
||||
@ -7815,7 +7815,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
|
||||
* @param columnName name of the Column
|
||||
* @param nString the value for the column to be updated
|
||||
* @throws SQLException if a database access error occurs
|
||||
* @since 6.0
|
||||
* @since 1.6
|
||||
*/
|
||||
public void updateNString(String columnName, String nString) throws SQLException {
|
||||
throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("cachedrowsetimpl.opnotysupp").toString());
|
||||
@ -7828,7 +7828,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
|
||||
* @param columnIndex the first column is 1, the second 2, ...
|
||||
* @param nClob the value for the column to be updated
|
||||
* @throws SQLException if a database access error occurs
|
||||
* @since 6.0
|
||||
* @since 1.6
|
||||
*/
|
||||
public void updateNClob(int columnIndex, NClob nClob) throws SQLException {
|
||||
throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("cachedrowsetimpl.opnotysupp").toString());
|
||||
@ -7840,7 +7840,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
|
||||
* @param columnName name of the column
|
||||
* @param nClob the value for the column to be updated
|
||||
* @throws SQLException if a database access error occurs
|
||||
* @since 6.0
|
||||
* @since 1.6
|
||||
*/
|
||||
public void updateNClob(String columnName, NClob nClob) throws SQLException {
|
||||
throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("cachedrowsetimpl.opnotysupp").toString());
|
||||
@ -7855,7 +7855,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
|
||||
* @return a <code>NClob</code> object representing the SQL
|
||||
* <code>NCLOB</code> value in the specified column
|
||||
* @exception SQLException if a database access error occurs
|
||||
* @since 6.0
|
||||
* @since 1.6
|
||||
*/
|
||||
public NClob getNClob(int i) throws SQLException {
|
||||
throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("cachedrowsetimpl.opnotysupp").toString());
|
||||
@ -7871,7 +7871,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
|
||||
* @return a <code>NClob</code> object representing the SQL <code>NCLOB</code>
|
||||
* value in the specified column
|
||||
* @exception SQLException if a database access error occurs
|
||||
* @since 6.0
|
||||
* @since 1.6
|
||||
*/
|
||||
public NClob getNClob(String colName) throws SQLException {
|
||||
throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("cachedrowsetimpl.opnotysupp").toString());
|
||||
|
@ -4505,7 +4505,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
|
||||
* @param columnIndex the first column is 1, the second is 2, ...
|
||||
* @return a SQLXML object that maps an SQL XML value
|
||||
* @throws SQLException if a database access error occurs
|
||||
* @since 6.0
|
||||
* @since 1.6
|
||||
*/
|
||||
public SQLXML getSQLXML(int columnIndex) throws SQLException {
|
||||
throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
|
||||
@ -4531,7 +4531,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
|
||||
* @return the column value if the value is a SQL <code>NULL</code> the
|
||||
* value returned is <code>null</code>
|
||||
* @throws SQLException if a database access error occurs
|
||||
* @since 6.0
|
||||
* @since 1.6
|
||||
*/
|
||||
public RowId getRowId(int columnIndex) throws SQLException {
|
||||
throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
|
||||
@ -4546,7 +4546,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
|
||||
* @return the column value if the value is a SQL <code>NULL</code> the
|
||||
* value returned is <code>null</code>
|
||||
* @throws SQLException if a database access error occurs
|
||||
* @since 6.0
|
||||
* @since 1.6
|
||||
*/
|
||||
public RowId getRowId(String columnName) throws SQLException {
|
||||
throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
|
||||
@ -4562,7 +4562,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
|
||||
* @param columnIndex the first column is 1, the second 2, ...
|
||||
* @param x the column value
|
||||
* @throws SQLException if a database access occurs
|
||||
* @since 6.0
|
||||
* @since 1.6
|
||||
*/
|
||||
public void updateRowId(int columnIndex, RowId x) throws SQLException {
|
||||
throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
|
||||
@ -4578,7 +4578,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
|
||||
* @param columnName the name of the column
|
||||
* @param x the column value
|
||||
* @throws SQLException if a database access occurs
|
||||
* @since 6.0
|
||||
* @since 1.6
|
||||
*/
|
||||
public void updateRowId(String columnName, RowId x) throws SQLException {
|
||||
throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
|
||||
@ -4588,7 +4588,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
|
||||
* Retrieves the holdability of this ResultSet object
|
||||
* @return either ResultSet.HOLD_CURSORS_OVER_COMMIT or ResultSet.CLOSE_CURSORS_AT_COMMIT
|
||||
* @throws SQLException if a database error occurs
|
||||
* @since 6.0
|
||||
* @since 1.6
|
||||
*/
|
||||
public int getHoldability() throws SQLException {
|
||||
throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
|
||||
@ -4599,7 +4599,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
|
||||
* method close has been called on it, or if it is automatically closed.
|
||||
* @return true if this ResultSet object is closed; false if it is still open
|
||||
* @throws SQLException if a database access error occurs
|
||||
* @since 6.0
|
||||
* @since 1.6
|
||||
*/
|
||||
public boolean isClosed() throws SQLException {
|
||||
throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
|
||||
@ -4611,7 +4611,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
|
||||
* @param columnIndex the first column is 1, the second 2, ...
|
||||
* @param nString the value for the column to be updated
|
||||
* @throws SQLException if a database access error occurs
|
||||
* @since 6.0
|
||||
* @since 1.6
|
||||
*/
|
||||
public void updateNString(int columnIndex, String nString) throws SQLException {
|
||||
throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
|
||||
@ -4623,7 +4623,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
|
||||
* @param columnName name of the Column
|
||||
* @param nString the value for the column to be updated
|
||||
* @throws SQLException if a database access error occurs
|
||||
* @since 6.0
|
||||
* @since 1.6
|
||||
*/
|
||||
public void updateNString(String columnName, String nString) throws SQLException {
|
||||
throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
|
||||
@ -4636,7 +4636,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
|
||||
* @param columnIndex the first column is 1, the second 2, ...
|
||||
* @param nClob the value for the column to be updated
|
||||
* @throws SQLException if a database access error occurs
|
||||
* @since 6.0
|
||||
* @since 1.6
|
||||
*/
|
||||
public void updateNClob(int columnIndex, NClob nClob) throws SQLException {
|
||||
throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
|
||||
@ -4648,7 +4648,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
|
||||
* @param columnName name of the column
|
||||
* @param nClob the value for the column to be updated
|
||||
* @throws SQLException if a database access error occurs
|
||||
* @since 6.0
|
||||
* @since 1.6
|
||||
*/
|
||||
public void updateNClob(String columnName, NClob nClob) throws SQLException {
|
||||
throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
|
||||
@ -4663,7 +4663,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
|
||||
* @return a <code>NClob</code> object representing the SQL
|
||||
* <code>NCLOB</code> value in the specified column
|
||||
* @exception SQLException if a database access error occurs
|
||||
* @since 6.0
|
||||
* @since 1.6
|
||||
*/
|
||||
public NClob getNClob(int i) throws SQLException {
|
||||
throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
|
||||
@ -4679,7 +4679,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
|
||||
* @return a <code>NClob</code> object representing the SQL <code>NCLOB</code>
|
||||
* value in the specified column
|
||||
* @exception SQLException if a database access error occurs
|
||||
* @since 6.0
|
||||
* @since 1.6
|
||||
*/
|
||||
public NClob getNClob(String colName) throws SQLException {
|
||||
throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
|
||||
|
@ -76,16 +76,10 @@ import java.io.IOException;
|
||||
* // attach to target VM
|
||||
* VirtualMachine vm = VirtualMachine.attach("2177");
|
||||
*
|
||||
* // get system properties in target VM
|
||||
* Properties props = vm.getSystemProperties();
|
||||
*
|
||||
* // construct path to management agent
|
||||
* String home = props.getProperty("java.home");
|
||||
* String agent = home + File.separator + "lib" + File.separator
|
||||
* + "management-agent.jar";
|
||||
*
|
||||
* // load agent into target VM
|
||||
* vm.loadAgent(agent, "com.sun.management.jmxremote.port=5000");
|
||||
* // start management agent
|
||||
* Properties props = new Properties();
|
||||
* props.put("com.sun.management.jmxremote.port", "5000");
|
||||
* vm.startManagementAgent(props);
|
||||
*
|
||||
* // detach
|
||||
* vm.detach();
|
||||
@ -93,9 +87,9 @@ import java.io.IOException;
|
||||
* </pre>
|
||||
*
|
||||
* <p> In this example we attach to a Java virtual machine that is identified by
|
||||
* the process identifier <code>2177</code>. The system properties from the target
|
||||
* VM are then used to construct the path to a <i>management agent</i> which is then
|
||||
* loaded into the target VM. Once loaded the client detaches from the target VM. </p>
|
||||
* the process identifier <code>2177</code>. Then the JMX management agent is
|
||||
* started in the target process using the supplied arguments. Finally, the
|
||||
* client detaches from the target VM. </p>
|
||||
*
|
||||
* <p> A VirtualMachine is safe for use by multiple concurrent threads. </p>
|
||||
*
|
||||
@ -610,6 +604,68 @@ public abstract class VirtualMachine {
|
||||
*/
|
||||
public abstract Properties getAgentProperties() throws IOException;
|
||||
|
||||
/**
|
||||
* Starts the JMX management agent in the target virtual machine.
|
||||
*
|
||||
* <p> The configuration properties are the same as those specified on
|
||||
* the command line when starting the JMX management agent. In the same
|
||||
* way as on the command line, you need to specify at least the
|
||||
* {@code com.sun.management.jmxremote.port} property.
|
||||
*
|
||||
* <p> See the online documentation for <a
|
||||
* href="../../../../../../../../technotes/guides/management/agent.html">
|
||||
* Monitoring and Management Using JMX Technology</a> for further details.
|
||||
*
|
||||
* @param agentProperties
|
||||
* A Properties object containing the configuration properties
|
||||
* for the agent.
|
||||
*
|
||||
* @throws AttachOperationFailedException
|
||||
* If the target virtual machine is unable to complete the
|
||||
* attach operation. A more specific error message will be
|
||||
* given by {@link AttachOperationFailedException#getMessage()}.
|
||||
*
|
||||
* @throws IOException
|
||||
* If an I/O error occurs, a communication error for example,
|
||||
* that cannot be identified as an error to indicate that the
|
||||
* operation failed in the target VM.
|
||||
*
|
||||
* @throws IllegalArgumentException
|
||||
* If keys or values in agentProperties are invalid.
|
||||
*
|
||||
* @throws NullPointerException
|
||||
* If agentProperties is null.
|
||||
*
|
||||
* @since 1.9
|
||||
*/
|
||||
public abstract void startManagementAgent(Properties agentProperties) throws IOException;
|
||||
|
||||
/**
|
||||
* Starts the local JMX management agent in the target virtual machine.
|
||||
*
|
||||
* <p> See the online documentation for <a
|
||||
* href="../../../../../../../../technotes/guides/management/agent.html">
|
||||
* Monitoring and Management Using JMX Technology</a> for further details.
|
||||
*
|
||||
* @return The String representation of the local connector's service address.
|
||||
* The value can be parsed by the
|
||||
* {@link javax.management.remote.JMXServiceURL#JMXServiceURL(String)}
|
||||
* constructor.
|
||||
*
|
||||
* @throws AttachOperationFailedException
|
||||
* If the target virtual machine is unable to complete the
|
||||
* attach operation. A more specific error message will be
|
||||
* given by {@link AttachOperationFailedException#getMessage()}.
|
||||
*
|
||||
* @throws IOException
|
||||
* If an I/O error occurs, a communication error for example,
|
||||
* that cannot be identified as an error to indicate that the
|
||||
* operation failed in the target VM.
|
||||
*
|
||||
* @since 1.9
|
||||
*/
|
||||
public abstract String startLocalManagementAgent() throws IOException;
|
||||
|
||||
/**
|
||||
* Returns a hash-code value for this VirtualMachine. The hash
|
||||
* code is based upon the VirtualMachine's components, and satifies
|
||||
|
@ -45,7 +45,7 @@ import javax.accessibility.*;
|
||||
*
|
||||
* @author Arthur van Hoff
|
||||
* @author Chris Warth
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public class Applet extends Panel {
|
||||
|
||||
@ -375,7 +375,7 @@ public class Applet extends Panel {
|
||||
*
|
||||
* @return the locale of the applet; if no locale has
|
||||
* been set, the default locale is returned.
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public Locale getLocale() {
|
||||
Locale locale = super.getLocale();
|
||||
|
@ -43,7 +43,7 @@ import java.util.Iterator;
|
||||
* information about its environment.
|
||||
*
|
||||
* @author Arthur van Hoff
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public interface AppletContext {
|
||||
/**
|
||||
|
@ -35,7 +35,7 @@ import java.net.URL;
|
||||
*
|
||||
* @author Arthur van Hoff
|
||||
* @see java.applet.Applet#setStub(java.applet.AppletStub)
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public interface AppletStub {
|
||||
/**
|
||||
|
@ -32,7 +32,7 @@ package java.applet;
|
||||
* together to produce a composite.
|
||||
*
|
||||
* @author Arthur van Hoff
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public interface AudioClip {
|
||||
/**
|
||||
|
@ -55,6 +55,6 @@ For overviews, tutorials, examples, guides, and tool documentation, please see:
|
||||
</ul>
|
||||
-->
|
||||
|
||||
@since JDK1.0
|
||||
@since 1.0
|
||||
</body>
|
||||
</html>
|
||||
|
@ -41,7 +41,7 @@ public class AWTError extends Error {
|
||||
* Constructs an instance of <code>AWTError</code> with the specified
|
||||
* detail message.
|
||||
* @param msg the detail message.
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public AWTError(String msg) {
|
||||
super(msg);
|
||||
|
@ -43,7 +43,7 @@ public class AWTException extends Exception {
|
||||
* instance of <code>String</code> that describes this particular
|
||||
* exception.
|
||||
* @param msg the detail message
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public AWTException(String msg) {
|
||||
super(msg);
|
||||
|
@ -119,7 +119,7 @@ import java.util.Hashtable;
|
||||
* @author Arthur van Hoff
|
||||
* @see java.awt.Container#add(String, Component)
|
||||
* @see java.awt.ComponentOrientation
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public class BorderLayout implements LayoutManager2,
|
||||
java.io.Serializable {
|
||||
@ -367,7 +367,7 @@ public class BorderLayout implements LayoutManager2,
|
||||
|
||||
/**
|
||||
* Returns the horizontal gap between components.
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public int getHgap() {
|
||||
return hgap;
|
||||
@ -376,7 +376,7 @@ public class BorderLayout implements LayoutManager2,
|
||||
/**
|
||||
* Sets the horizontal gap between components.
|
||||
* @param hgap the horizontal gap between components
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void setHgap(int hgap) {
|
||||
this.hgap = hgap;
|
||||
@ -384,7 +384,7 @@ public class BorderLayout implements LayoutManager2,
|
||||
|
||||
/**
|
||||
* Returns the vertical gap between components.
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public int getVgap() {
|
||||
return vgap;
|
||||
@ -393,7 +393,7 @@ public class BorderLayout implements LayoutManager2,
|
||||
/**
|
||||
* Sets the vertical gap between components.
|
||||
* @param vgap the vertical gap between components
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void setVgap(int vgap) {
|
||||
this.vgap = vgap;
|
||||
@ -415,7 +415,7 @@ public class BorderLayout implements LayoutManager2,
|
||||
* @see java.awt.Container#add(java.awt.Component, java.lang.Object)
|
||||
* @exception IllegalArgumentException if the constraint object is not
|
||||
* a string, or if it not one of the five specified constants.
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void addLayoutComponent(Component comp, Object constraints) {
|
||||
synchronized (comp.getTreeLock()) {
|
||||
|
@ -82,7 +82,7 @@ import javax.accessibility.*;
|
||||
* @see java.awt.event.ActionListener
|
||||
* @see java.awt.Component#processMouseEvent
|
||||
* @see java.awt.Component#addMouseListener
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public class Button extends Component implements Accessible {
|
||||
|
||||
@ -228,7 +228,7 @@ public class Button extends Component implements Accessible {
|
||||
* If the string is <code>null</code> then the action command
|
||||
* is set to match the label of the button.
|
||||
* @see java.awt.event.ActionEvent
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void setActionCommand(String command) {
|
||||
actionCommand = command;
|
||||
@ -255,7 +255,7 @@ public class Button extends Component implements Accessible {
|
||||
* @see #removeActionListener
|
||||
* @see #getActionListeners
|
||||
* @see java.awt.event.ActionListener
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public synchronized void addActionListener(ActionListener l) {
|
||||
if (l == null) {
|
||||
@ -277,7 +277,7 @@ public class Button extends Component implements Accessible {
|
||||
* @see #addActionListener
|
||||
* @see #getActionListeners
|
||||
* @see java.awt.event.ActionListener
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public synchronized void removeActionListener(ActionListener l) {
|
||||
if (l == null) {
|
||||
@ -370,7 +370,7 @@ public class Button extends Component implements Accessible {
|
||||
* @param e the event
|
||||
* @see java.awt.event.ActionEvent
|
||||
* @see java.awt.Button#processActionEvent
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
protected void processEvent(AWTEvent e) {
|
||||
if (e instanceof ActionEvent) {
|
||||
@ -401,7 +401,7 @@ public class Button extends Component implements Accessible {
|
||||
* @see java.awt.event.ActionListener
|
||||
* @see java.awt.Button#addActionListener
|
||||
* @see java.awt.Component#enableEvents
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
protected void processActionEvent(ActionEvent e) {
|
||||
ActionListener listener = actionListener;
|
||||
|
@ -39,7 +39,7 @@ import javax.accessibility.*;
|
||||
* in order to perform custom graphics on the canvas.
|
||||
*
|
||||
* @author Sami Shaio
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public class Canvas extends Component implements Accessible {
|
||||
|
||||
|
@ -53,7 +53,7 @@ import java.io.IOException;
|
||||
*
|
||||
* @author Arthur van Hoff
|
||||
* @see java.awt.Container
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
|
||||
public class CardLayout implements LayoutManager2,
|
||||
@ -148,7 +148,7 @@ public class CardLayout implements LayoutManager2,
|
||||
* @return the horizontal gap between components.
|
||||
* @see java.awt.CardLayout#setHgap(int)
|
||||
* @see java.awt.CardLayout#getVgap()
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public int getHgap() {
|
||||
return hgap;
|
||||
@ -159,7 +159,7 @@ public class CardLayout implements LayoutManager2,
|
||||
* @param hgap the horizontal gap between components.
|
||||
* @see java.awt.CardLayout#getHgap()
|
||||
* @see java.awt.CardLayout#setVgap(int)
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void setHgap(int hgap) {
|
||||
this.hgap = hgap;
|
||||
@ -180,7 +180,7 @@ public class CardLayout implements LayoutManager2,
|
||||
* @param vgap the vertical gap between components.
|
||||
* @see java.awt.CardLayout#getVgap()
|
||||
* @see java.awt.CardLayout#setHgap(int)
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void setVgap(int vgap) {
|
||||
this.vgap = vgap;
|
||||
|
@ -71,7 +71,7 @@ import javax.accessibility.*;
|
||||
* @author Sami Shaio
|
||||
* @see java.awt.GridLayout
|
||||
* @see java.awt.CheckboxGroup
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public class Checkbox extends Component implements ItemSelectable, Accessible {
|
||||
|
||||
@ -190,7 +190,7 @@ public class Checkbox extends Component implements ItemSelectable, Accessible {
|
||||
* <code>GraphicsEnvironment.isHeadless</code>
|
||||
* returns <code>true</code>
|
||||
* @see java.awt.GraphicsEnvironment#isHeadless
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public Checkbox(String label, boolean state, CheckboxGroup group)
|
||||
throws HeadlessException {
|
||||
@ -216,7 +216,7 @@ public class Checkbox extends Component implements ItemSelectable, Accessible {
|
||||
* <code>GraphicsEnvironment.isHeadless</code>
|
||||
* returns <code>true</code>
|
||||
* @see java.awt.GraphicsEnvironment#isHeadless
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public Checkbox(String label, CheckboxGroup group, boolean state)
|
||||
throws HeadlessException {
|
||||
@ -424,7 +424,7 @@ public class Checkbox extends Component implements ItemSelectable, Accessible {
|
||||
* @see #setState
|
||||
* @see java.awt.event.ItemEvent
|
||||
* @see java.awt.event.ItemListener
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public synchronized void addItemListener(ItemListener l) {
|
||||
if (l == null) {
|
||||
@ -446,7 +446,7 @@ public class Checkbox extends Component implements ItemSelectable, Accessible {
|
||||
* @see #getItemListeners
|
||||
* @see java.awt.event.ItemEvent
|
||||
* @see java.awt.event.ItemListener
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public synchronized void removeItemListener(ItemListener l) {
|
||||
if (l == null) {
|
||||
@ -540,7 +540,7 @@ public class Checkbox extends Component implements ItemSelectable, Accessible {
|
||||
* @param e the event
|
||||
* @see java.awt.event.ItemEvent
|
||||
* @see #processItemEvent
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
protected void processEvent(AWTEvent e) {
|
||||
if (e instanceof ItemEvent) {
|
||||
@ -572,7 +572,7 @@ public class Checkbox extends Component implements ItemSelectable, Accessible {
|
||||
* @see java.awt.event.ItemListener
|
||||
* @see #addItemListener
|
||||
* @see java.awt.Component#enableEvents
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
protected void processItemEvent(ItemEvent e) {
|
||||
ItemListener listener = itemListener;
|
||||
|
@ -52,7 +52,7 @@ package java.awt;
|
||||
*
|
||||
* @author Sami Shaio
|
||||
* @see java.awt.Checkbox
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public class CheckboxGroup implements java.io.Serializable {
|
||||
/**
|
||||
@ -84,7 +84,7 @@ public class CheckboxGroup implements java.io.Serializable {
|
||||
* "on" state, or <code>null</code>.
|
||||
* @see java.awt.Checkbox
|
||||
* @see java.awt.CheckboxGroup#setSelectedCheckbox
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public Checkbox getSelectedCheckbox() {
|
||||
return getCurrent();
|
||||
@ -113,7 +113,7 @@ public class CheckboxGroup implements java.io.Serializable {
|
||||
* current selection.
|
||||
* @see java.awt.Checkbox
|
||||
* @see java.awt.CheckboxGroup#getSelectedCheckbox
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void setSelectedCheckbox(Checkbox box) {
|
||||
setCurrent(box);
|
||||
|
@ -59,7 +59,7 @@ import sun.awt.AWTAccessor;
|
||||
* @author Sami Shaio
|
||||
* @see java.awt.event.ItemEvent
|
||||
* @see java.awt.event.ItemListener
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public class CheckboxMenuItem extends MenuItem implements ItemSelectable, Accessible {
|
||||
|
||||
@ -102,7 +102,7 @@ public class CheckboxMenuItem extends MenuItem implements ItemSelectable, Access
|
||||
* @exception HeadlessException if GraphicsEnvironment.isHeadless()
|
||||
* returns true
|
||||
* @see java.awt.GraphicsEnvironment#isHeadless
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public CheckboxMenuItem() throws HeadlessException {
|
||||
this("", false);
|
||||
@ -132,7 +132,7 @@ public class CheckboxMenuItem extends MenuItem implements ItemSelectable, Access
|
||||
* @exception HeadlessException if GraphicsEnvironment.isHeadless()
|
||||
* returns true
|
||||
* @see java.awt.GraphicsEnvironment#isHeadless
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public CheckboxMenuItem(String label, boolean state)
|
||||
throws HeadlessException {
|
||||
@ -231,7 +231,7 @@ public class CheckboxMenuItem extends MenuItem implements ItemSelectable, Access
|
||||
* @see #setState
|
||||
* @see java.awt.event.ItemEvent
|
||||
* @see java.awt.event.ItemListener
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public synchronized void addItemListener(ItemListener l) {
|
||||
if (l == null) {
|
||||
@ -253,7 +253,7 @@ public class CheckboxMenuItem extends MenuItem implements ItemSelectable, Access
|
||||
* @see #getItemListeners
|
||||
* @see java.awt.event.ItemEvent
|
||||
* @see java.awt.event.ItemListener
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public synchronized void removeItemListener(ItemListener l) {
|
||||
if (l == null) {
|
||||
@ -350,7 +350,7 @@ public class CheckboxMenuItem extends MenuItem implements ItemSelectable, Access
|
||||
* @param e the event
|
||||
* @see java.awt.event.ItemEvent
|
||||
* @see #processItemEvent
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
protected void processEvent(AWTEvent e) {
|
||||
if (e instanceof ItemEvent) {
|
||||
@ -381,7 +381,7 @@ public class CheckboxMenuItem extends MenuItem implements ItemSelectable, Access
|
||||
* @see java.awt.event.ItemListener
|
||||
* @see #addItemListener
|
||||
* @see java.awt.MenuItem#enableEvents
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
protected void processItemEvent(ItemEvent e) {
|
||||
ItemListener listener = itemListener;
|
||||
|
@ -68,7 +68,7 @@ import javax.accessibility.*;
|
||||
*
|
||||
* @author Sami Shaio
|
||||
* @author Arthur van Hoff
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public class Choice extends Component implements ItemSelectable, Accessible {
|
||||
/**
|
||||
@ -158,7 +158,7 @@ public class Choice extends Component implements ItemSelectable, Accessible {
|
||||
* Returns the number of items in this <code>Choice</code> menu.
|
||||
* @return the number of items in this <code>Choice</code> menu
|
||||
* @see #getItem
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public int getItemCount() {
|
||||
return countItems();
|
||||
@ -196,7 +196,7 @@ public class Choice extends Component implements ItemSelectable, Accessible {
|
||||
* @param item the item to be added
|
||||
* @exception NullPointerException if the item's value is
|
||||
* <code>null</code>
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void add(String item) {
|
||||
addItem(item);
|
||||
@ -291,7 +291,7 @@ public class Choice extends Component implements ItemSelectable, Accessible {
|
||||
* @param item the item to remove from this <code>Choice</code> menu
|
||||
* @exception IllegalArgumentException if the item doesn't
|
||||
* exist in the choice menu
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void remove(String item) {
|
||||
synchronized (this) {
|
||||
@ -319,7 +319,7 @@ public class Choice extends Component implements ItemSelectable, Accessible {
|
||||
* @param position the position of the item
|
||||
* @throws IndexOutOfBoundsException if the specified
|
||||
* position is out of bounds
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void remove(int position) {
|
||||
synchronized (this) {
|
||||
@ -357,7 +357,7 @@ public class Choice extends Component implements ItemSelectable, Accessible {
|
||||
/**
|
||||
* Removes all items from the choice menu.
|
||||
* @see #remove
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void removeAll() {
|
||||
synchronized (this) {
|
||||
@ -475,7 +475,7 @@ public class Choice extends Component implements ItemSelectable, Accessible {
|
||||
* @see #select
|
||||
* @see java.awt.event.ItemEvent
|
||||
* @see java.awt.event.ItemListener
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public synchronized void addItemListener(ItemListener l) {
|
||||
if (l == null) {
|
||||
@ -497,7 +497,7 @@ public class Choice extends Component implements ItemSelectable, Accessible {
|
||||
* @see #getItemListeners
|
||||
* @see java.awt.event.ItemEvent
|
||||
* @see java.awt.event.ItemListener
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public synchronized void removeItemListener(ItemListener l) {
|
||||
if (l == null) {
|
||||
@ -591,7 +591,7 @@ public class Choice extends Component implements ItemSelectable, Accessible {
|
||||
* @param e the event
|
||||
* @see java.awt.event.ItemEvent
|
||||
* @see #processItemEvent
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
protected void processEvent(AWTEvent e) {
|
||||
if (e instanceof ItemEvent) {
|
||||
@ -623,7 +623,7 @@ public class Choice extends Component implements ItemSelectable, Accessible {
|
||||
* @see java.awt.event.ItemListener
|
||||
* @see #addItemListener(ItemListener)
|
||||
* @see java.awt.Component#enableEvents
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
protected void processItemEvent(ItemEvent e) {
|
||||
ItemListener listener = itemListener;
|
||||
|
@ -597,7 +597,7 @@ public class Color implements Paint, java.io.Serializable {
|
||||
* @see #getRed
|
||||
* @see #getGreen
|
||||
* @see #getBlue
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public int getRGB() {
|
||||
return value;
|
||||
@ -621,7 +621,7 @@ public class Color implements Paint, java.io.Serializable {
|
||||
* a brighter version of this <code>Color</code>
|
||||
* with the same {@code alpha} value.
|
||||
* @see java.awt.Color#darker
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public Color brighter() {
|
||||
int r = getRed();
|
||||
@ -664,7 +664,7 @@ public class Color implements Paint, java.io.Serializable {
|
||||
* a darker version of this <code>Color</code>
|
||||
* with the same {@code alpha} value.
|
||||
* @see java.awt.Color#brighter
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public Color darker() {
|
||||
return new Color(Math.max((int)(getRed() *FACTOR), 0),
|
||||
@ -676,7 +676,7 @@ public class Color implements Paint, java.io.Serializable {
|
||||
/**
|
||||
* Computes the hash code for this <code>Color</code>.
|
||||
* @return a hash code value for this object.
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public int hashCode() {
|
||||
return value;
|
||||
@ -693,7 +693,7 @@ public class Color implements Paint, java.io.Serializable {
|
||||
* <code>Color</code>
|
||||
* @return <code>true</code> if the objects are the same;
|
||||
* <code>false</code> otherwise.
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public boolean equals(Object obj) {
|
||||
return obj instanceof Color && ((Color)obj).getRGB() == this.getRGB();
|
||||
@ -723,7 +723,7 @@ public class Color implements Paint, java.io.Serializable {
|
||||
* @exception NumberFormatException if the specified string cannot
|
||||
* be interpreted as a decimal,
|
||||
* octal, or hexadecimal integer.
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public static Color decode(String nm) throws NumberFormatException {
|
||||
Integer intval = Integer.decode(nm);
|
||||
@ -747,7 +747,7 @@ public class Color implements Paint, java.io.Serializable {
|
||||
* @see java.lang.System#getProperty(java.lang.String)
|
||||
* @see java.lang.Integer#getInteger(java.lang.String)
|
||||
* @see java.awt.Color#Color(int)
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public static Color getColor(String nm) {
|
||||
return getColor(nm, null);
|
||||
@ -771,7 +771,7 @@ public class Color implements Paint, java.io.Serializable {
|
||||
* @see java.lang.System#getProperty(java.lang.String)
|
||||
* @see java.lang.Integer#getInteger(java.lang.String)
|
||||
* @see java.awt.Color#Color(int)
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public static Color getColor(String nm, Color v) {
|
||||
Integer intval = Integer.getInteger(nm);
|
||||
@ -801,7 +801,7 @@ public class Color implements Paint, java.io.Serializable {
|
||||
* @see java.lang.System#getProperty(java.lang.String)
|
||||
* @see java.lang.Integer#getInteger(java.lang.String)
|
||||
* @see java.awt.Color#Color(int)
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public static Color getColor(String nm, int v) {
|
||||
Integer intval = Integer.getInteger(nm);
|
||||
@ -834,7 +834,7 @@ public class Color implements Paint, java.io.Serializable {
|
||||
* @see java.awt.Color#getRGB()
|
||||
* @see java.awt.Color#Color(int)
|
||||
* @see java.awt.image.ColorModel#getRGBdefault()
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public static int HSBtoRGB(float hue, float saturation, float brightness) {
|
||||
int r = 0, g = 0, b = 0;
|
||||
@ -902,7 +902,7 @@ public class Color implements Paint, java.io.Serializable {
|
||||
* @see java.awt.Color#getRGB()
|
||||
* @see java.awt.Color#Color(int)
|
||||
* @see java.awt.image.ColorModel#getRGBdefault()
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public static float[] RGBtoHSB(int r, int g, int b, float[] hsbvals) {
|
||||
float hue, saturation, brightness;
|
||||
@ -957,7 +957,7 @@ public class Color implements Paint, java.io.Serializable {
|
||||
* @param b the brightness of the color
|
||||
* @return a <code>Color</code> object with the specified hue,
|
||||
* saturation, and brightness.
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public static Color getHSBColor(float h, float s, float b) {
|
||||
return new Color(HSBtoRGB(h, s, b));
|
||||
|
@ -1018,7 +1018,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* Gets the name of the component.
|
||||
* @return this component's name
|
||||
* @see #setName
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public String getName() {
|
||||
if (name == null && !nameExplicitlySet) {
|
||||
@ -1035,7 +1035,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* @param name the string that is to be this
|
||||
* component's name
|
||||
* @see #getName
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void setName(String name) {
|
||||
String oldName;
|
||||
@ -1050,7 +1050,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
/**
|
||||
* Gets the parent of this component.
|
||||
* @return the parent container of this component
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public Container getParent() {
|
||||
return getParent_NoClientCode();
|
||||
@ -1221,7 +1221,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* toolkit is used by that component. Therefore if the component
|
||||
* is moved from one frame to another, the toolkit it uses may change.
|
||||
* @return the toolkit of this component
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public Toolkit getToolkit() {
|
||||
return getToolkitImpl();
|
||||
@ -1250,7 +1250,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* otherwise
|
||||
* @see #validate
|
||||
* @see #invalidate
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public boolean isValid() {
|
||||
return (peer != null) && valid;
|
||||
@ -1292,7 +1292,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* @return <code>true</code> if the component is visible,
|
||||
* <code>false</code> otherwise
|
||||
* @see #setVisible
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
@Transient
|
||||
public boolean isVisible() {
|
||||
@ -1419,7 +1419,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* @return <code>true</code> if the component is showing,
|
||||
* <code>false</code> otherwise
|
||||
* @see #setVisible
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public boolean isShowing() {
|
||||
if (visible && (peer != null)) {
|
||||
@ -1437,7 +1437,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* @return <code>true</code> if the component is enabled,
|
||||
* <code>false</code> otherwise
|
||||
* @see #setEnabled
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public boolean isEnabled() {
|
||||
return isEnabledImpl();
|
||||
@ -1466,7 +1466,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* enabled; otherwise this component is disabled
|
||||
* @see #isEnabled
|
||||
* @see #isLightweight
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void setEnabled(boolean b) {
|
||||
enable(b);
|
||||
@ -1611,7 +1611,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* otherwise, hides this component
|
||||
* @see #isVisible
|
||||
* @see #invalidate
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void setVisible(boolean b) {
|
||||
show(b);
|
||||
@ -1739,7 +1739,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* not have a foreground color, the foreground color of its parent
|
||||
* is returned
|
||||
* @see #setForeground
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
* @beaninfo
|
||||
* bound: true
|
||||
*/
|
||||
@ -1760,7 +1760,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* then this component will inherit
|
||||
* the foreground color of its parent
|
||||
* @see #getForeground
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public void setForeground(Color c) {
|
||||
Color oldColor = foreground;
|
||||
@ -1796,7 +1796,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* not have a background color,
|
||||
* the background color of its parent is returned
|
||||
* @see #setBackground
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
@Transient
|
||||
public Color getBackground() {
|
||||
@ -1819,7 +1819,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* if this parameter is <code>null</code>, then this
|
||||
* component will inherit the background color of its parent
|
||||
* @see #getBackground
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
* @beaninfo
|
||||
* bound: true
|
||||
*/
|
||||
@ -1856,7 +1856,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* @return this component's font; if a font has not been set
|
||||
* for this component, the font of its parent is returned
|
||||
* @see #setFont
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
@Transient
|
||||
public Font getFont() {
|
||||
@ -1887,7 +1887,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* component will inherit the font of its parent
|
||||
* @see #getFont
|
||||
* @see #invalidate
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
* @beaninfo
|
||||
* bound: true
|
||||
*/
|
||||
@ -1940,7 +1940,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* does not have its own locale and has not yet been added to
|
||||
* a containment hierarchy such that the locale can be determined
|
||||
* from the containing parent
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public Locale getLocale() {
|
||||
Locale locale = this.locale;
|
||||
@ -1965,7 +1965,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* @param l the locale to become this component's locale
|
||||
* @see #getLocale
|
||||
* @see #invalidate
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void setLocale(Locale l) {
|
||||
Locale oldValue = locale;
|
||||
@ -1986,7 +1986,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* @see java.awt.image.ColorModel
|
||||
* @see java.awt.peer.ComponentPeer#getColorModel()
|
||||
* @see Toolkit#getColorModel()
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public ColorModel getColorModel() {
|
||||
ComponentPeer peer = this.peer;
|
||||
@ -2016,7 +2016,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* the coordinate space of the component's parent
|
||||
* @see #setLocation
|
||||
* @see #getLocationOnScreen
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public Point getLocation() {
|
||||
return location();
|
||||
@ -2095,7 +2095,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* @see #getLocation
|
||||
* @see #setBounds
|
||||
* @see #invalidate
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void setLocation(int x, int y) {
|
||||
move(x, y);
|
||||
@ -2127,7 +2127,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* @see #getLocation
|
||||
* @see #setBounds
|
||||
* @see #invalidate
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void setLocation(Point p) {
|
||||
setLocation(p.x, p.y);
|
||||
@ -2143,7 +2143,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* @return a <code>Dimension</code> object that indicates the
|
||||
* size of this component
|
||||
* @see #setSize
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public Dimension getSize() {
|
||||
return size();
|
||||
@ -2170,7 +2170,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* @see #getSize
|
||||
* @see #setBounds
|
||||
* @see #invalidate
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void setSize(int width, int height) {
|
||||
resize(width, height);
|
||||
@ -2201,7 +2201,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* @see #setSize
|
||||
* @see #setBounds
|
||||
* @see #invalidate
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void setSize(Dimension d) {
|
||||
resize(d);
|
||||
@ -2258,7 +2258,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* @see #setSize(int, int)
|
||||
* @see #setSize(Dimension)
|
||||
* @see #invalidate
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void setBounds(int x, int y, int width, int height) {
|
||||
reshape(x, y, width, height);
|
||||
@ -2402,7 +2402,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* @see #setSize(int, int)
|
||||
* @see #setSize(Dimension)
|
||||
* @see #invalidate
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void setBounds(Rectangle r) {
|
||||
setBounds(r.x, r.y, r.width, r.height);
|
||||
@ -2883,7 +2883,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* @see #doLayout()
|
||||
* @see LayoutManager
|
||||
* @see Container#validate
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public void validate() {
|
||||
synchronized (getTreeLock()) {
|
||||
@ -2926,7 +2926,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* @see #doLayout
|
||||
* @see LayoutManager
|
||||
* @see java.awt.Container#isValidateRoot
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public void invalidate() {
|
||||
synchronized (getTreeLock()) {
|
||||
@ -3021,7 +3021,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* @return a graphics context for this component, or <code>null</code>
|
||||
* if it has none
|
||||
* @see #paint
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public Graphics getGraphics() {
|
||||
if (peer instanceof LightweightPeer) {
|
||||
@ -3085,7 +3085,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* @see #getPeer
|
||||
* @see java.awt.peer.ComponentPeer#getFontMetrics(Font)
|
||||
* @see Toolkit#getFontMetrics(Font)
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public FontMetrics getFontMetrics(Font font) {
|
||||
// This is an unsupported hack, but left in for a customer.
|
||||
@ -3125,7 +3125,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* @see #contains
|
||||
* @see Toolkit#createCustomCursor
|
||||
* @see Cursor
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void setCursor(Cursor cursor) {
|
||||
this.cursor = cursor;
|
||||
@ -3158,7 +3158,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* If no cursor is set in the entire hierarchy,
|
||||
* <code>Cursor.DEFAULT_CURSOR</code> is returned.
|
||||
* @see #setCursor
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public Cursor getCursor() {
|
||||
return getCursor_NoClientCode();
|
||||
@ -3212,7 +3212,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
*
|
||||
* @param g the graphics context to use for painting
|
||||
* @see #update
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public void paint(Graphics g) {
|
||||
}
|
||||
@ -3248,7 +3248,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* @param g the specified context to use for updating
|
||||
* @see #paint
|
||||
* @see #repaint()
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public void update(Graphics g) {
|
||||
paint(g);
|
||||
@ -3264,7 +3264,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
*
|
||||
* @param g the graphics context to use for painting
|
||||
* @see #paint
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public void paintAll(Graphics g) {
|
||||
if (isShowing()) {
|
||||
@ -3308,7 +3308,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
|
||||
*
|
||||
* @see #update(Graphics)
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public void repaint() {
|
||||
repaint(0, 0, 0, width, height);
|
||||
@ -3327,7 +3327,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* @param tm maximum time in milliseconds before update
|
||||
* @see #paint
|
||||
* @see #update(Graphics)
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public void repaint(long tm) {
|
||||
repaint(tm, 0, 0, width, height);
|
||||
@ -3351,7 +3351,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* @param width the width
|
||||
* @param height the height
|
||||
* @see #update(Graphics)
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public void repaint(int x, int y, int width, int height) {
|
||||
repaint(0, x, y, width, height);
|
||||
@ -3377,7 +3377,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* @param width the width
|
||||
* @param height the height
|
||||
* @see #update(Graphics)
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public void repaint(long tm, int x, int y, int width, int height) {
|
||||
if (this.peer instanceof LightweightPeer) {
|
||||
@ -3430,7 +3430,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* graphics context is the bounding rectangle of this component.
|
||||
* @param g the graphics context to use for printing
|
||||
* @see #paint(Graphics)
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public void print(Graphics g) {
|
||||
paint(g);
|
||||
@ -3445,7 +3445,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* graphics context is the bounding rectangle of this component.
|
||||
* @param g the graphics context to use for printing
|
||||
* @see #print(Graphics)
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public void printAll(Graphics g) {
|
||||
if (isShowing()) {
|
||||
@ -3525,7 +3525,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* @see Graphics#drawImage(Image, int, int, int, int, Color, java.awt.image.ImageObserver)
|
||||
* @see Graphics#drawImage(Image, int, int, int, int, java.awt.image.ImageObserver)
|
||||
* @see java.awt.image.ImageObserver#imageUpdate(java.awt.Image, int, int, int, int, int)
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public boolean imageUpdate(Image img, int infoflags,
|
||||
int x, int y, int w, int h) {
|
||||
@ -3550,7 +3550,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* Creates an image from the specified image producer.
|
||||
* @param producer the image producer
|
||||
* @return the image produced
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public Image createImage(ImageProducer producer) {
|
||||
ComponentPeer peer = this.peer;
|
||||
@ -3572,7 +3572,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* <code>true</code>.
|
||||
* @see #isDisplayable
|
||||
* @see GraphicsEnvironment#isHeadless
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public Image createImage(int width, int height) {
|
||||
ComponentPeer peer = this.peer;
|
||||
@ -3643,7 +3643,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* to be notified as the image is being prepared
|
||||
* @return <code>true</code> if the image has already been fully
|
||||
* prepared; <code>false</code> otherwise
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public boolean prepareImage(Image image, ImageObserver observer) {
|
||||
return prepareImage(image, -1, -1, observer);
|
||||
@ -3665,7 +3665,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* @return <code>true</code> if the image has already been fully
|
||||
* prepared; <code>false</code> otherwise
|
||||
* @see java.awt.image.ImageObserver
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public boolean prepareImage(Image image, int width, int height,
|
||||
ImageObserver observer) {
|
||||
@ -3701,7 +3701,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* @see #prepareImage(Image, int, int, java.awt.image.ImageObserver)
|
||||
* @see Toolkit#checkImage(Image, int, int, java.awt.image.ImageObserver)
|
||||
* @see java.awt.image.ImageObserver
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public int checkImage(Image image, ImageObserver observer) {
|
||||
return checkImage(image, -1, -1, observer);
|
||||
@ -3737,7 +3737,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* @see #prepareImage(Image, int, int, java.awt.image.ImageObserver)
|
||||
* @see Toolkit#checkImage(Image, int, int, java.awt.image.ImageObserver)
|
||||
* @see java.awt.image.ImageObserver
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public int checkImage(Image image, int width, int height,
|
||||
ImageObserver observer) {
|
||||
@ -4622,7 +4622,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* @param x the <i>x</i> coordinate of the point
|
||||
* @param y the <i>y</i> coordinate of the point
|
||||
* @see #getComponentAt(int, int)
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public boolean contains(int x, int y) {
|
||||
return inside(x, y);
|
||||
@ -4644,7 +4644,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* @param p the point
|
||||
* @throws NullPointerException if {@code p} is {@code null}
|
||||
* @see #getComponentAt(Point)
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public boolean contains(Point p) {
|
||||
return contains(p.x, p.y);
|
||||
@ -4669,7 +4669,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* <code>null</code> if the location
|
||||
* is outside this component
|
||||
* @see #contains(int, int)
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public Component getComponentAt(int x, int y) {
|
||||
return locate(x, y);
|
||||
@ -4689,7 +4689,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* specified point.
|
||||
* @param p the point
|
||||
* @see java.awt.Component#contains
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public Component getComponentAt(Point p) {
|
||||
return getComponentAt(p.x, p.y);
|
||||
@ -5224,7 +5224,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* @see java.awt.event.ComponentListener
|
||||
* @see #removeComponentListener
|
||||
* @see #getComponentListeners
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public synchronized void addComponentListener(ComponentListener l) {
|
||||
if (l == null) {
|
||||
@ -5248,7 +5248,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* @see java.awt.event.ComponentListener
|
||||
* @see #addComponentListener
|
||||
* @see #getComponentListeners
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public synchronized void removeComponentListener(ComponentListener l) {
|
||||
if (l == null) {
|
||||
@ -5286,7 +5286,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* @see java.awt.event.FocusListener
|
||||
* @see #removeFocusListener
|
||||
* @see #getFocusListeners
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public synchronized void addFocusListener(FocusListener l) {
|
||||
if (l == null) {
|
||||
@ -5317,7 +5317,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* @see java.awt.event.FocusListener
|
||||
* @see #addFocusListener
|
||||
* @see #getFocusListeners
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public synchronized void removeFocusListener(FocusListener l) {
|
||||
if (l == null) {
|
||||
@ -5618,7 +5618,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* @see java.awt.event.KeyListener
|
||||
* @see #removeKeyListener
|
||||
* @see #getKeyListeners
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public synchronized void addKeyListener(KeyListener l) {
|
||||
if (l == null) {
|
||||
@ -5649,7 +5649,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* @see java.awt.event.KeyListener
|
||||
* @see #addKeyListener
|
||||
* @see #getKeyListeners
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public synchronized void removeKeyListener(KeyListener l) {
|
||||
if (l == null) {
|
||||
@ -5687,7 +5687,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* @see java.awt.event.MouseListener
|
||||
* @see #removeMouseListener
|
||||
* @see #getMouseListeners
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public synchronized void addMouseListener(MouseListener l) {
|
||||
if (l == null) {
|
||||
@ -5718,7 +5718,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* @see java.awt.event.MouseListener
|
||||
* @see #addMouseListener
|
||||
* @see #getMouseListeners
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public synchronized void removeMouseListener(MouseListener l) {
|
||||
if (l == null) {
|
||||
@ -5756,7 +5756,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* @see java.awt.event.MouseMotionListener
|
||||
* @see #removeMouseMotionListener
|
||||
* @see #getMouseMotionListeners
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public synchronized void addMouseMotionListener(MouseMotionListener l) {
|
||||
if (l == null) {
|
||||
@ -5787,7 +5787,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* @see java.awt.event.MouseMotionListener
|
||||
* @see #addMouseMotionListener
|
||||
* @see #getMouseMotionListeners
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public synchronized void removeMouseMotionListener(MouseMotionListener l) {
|
||||
if (l == null) {
|
||||
@ -6072,7 +6072,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* @see #processEvent
|
||||
* @see #disableEvents
|
||||
* @see AWTEvent
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
protected final void enableEvents(long eventsToEnable) {
|
||||
long notifyAncestors = 0;
|
||||
@ -6108,7 +6108,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* from being delivered to this component.
|
||||
* @param eventsToDisable the event mask defining the event types
|
||||
* @see #enableEvents
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
protected final void disableEvents(long eventsToDisable) {
|
||||
long notifyAncestors = 0;
|
||||
@ -6285,7 +6285,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* @see #processInputMethodEvent
|
||||
* @see #processHierarchyEvent
|
||||
* @see #processMouseWheelEvent
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
protected void processEvent(AWTEvent e) {
|
||||
if (e instanceof FocusEvent) {
|
||||
@ -6351,7 +6351,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* @see java.awt.event.ComponentListener
|
||||
* @see #addComponentListener
|
||||
* @see #enableEvents
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
protected void processComponentEvent(ComponentEvent e) {
|
||||
ComponentListener listener = componentListener;
|
||||
@ -6414,7 +6414,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* @see #addFocusListener
|
||||
* @see #enableEvents
|
||||
* @see #dispatchEvent
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
protected void processFocusEvent(FocusEvent e) {
|
||||
FocusListener listener = focusListener;
|
||||
@ -6480,7 +6480,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* @see #addKeyListener
|
||||
* @see #enableEvents
|
||||
* @see #isShowing
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
protected void processKeyEvent(KeyEvent e) {
|
||||
KeyListener listener = keyListener;
|
||||
@ -6522,7 +6522,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* @see java.awt.event.MouseListener
|
||||
* @see #addMouseListener
|
||||
* @see #enableEvents
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
protected void processMouseEvent(MouseEvent e) {
|
||||
MouseListener listener = mouseListener;
|
||||
@ -6570,7 +6570,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* @see java.awt.event.MouseMotionListener
|
||||
* @see #addMouseMotionListener
|
||||
* @see #enableEvents
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
protected void processMouseMotionEvent(MouseEvent e) {
|
||||
MouseMotionListener listener = mouseMotionListener;
|
||||
@ -6882,7 +6882,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* @see #isDisplayable
|
||||
* @see #removeNotify
|
||||
* @see #invalidate
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public void addNotify() {
|
||||
synchronized (getTreeLock()) {
|
||||
@ -6985,7 +6985,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
*
|
||||
* @see #isDisplayable
|
||||
* @see #addNotify
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public void removeNotify() {
|
||||
KeyboardFocusManager.clearMostRecentFocusOwner(this);
|
||||
@ -7094,7 +7094,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* @return <code>true</code> if this <code>Component</code> is
|
||||
* focusable; <code>false</code> otherwise
|
||||
* @see #setFocusable
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
* @deprecated As of 1.4, replaced by <code>isFocusable()</code>.
|
||||
*/
|
||||
@Deprecated
|
||||
@ -7433,7 +7433,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* @see #isFocusable
|
||||
* @see #isDisplayable
|
||||
* @see KeyboardFocusManager#clearGlobalFocusOwner
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public void requestFocus() {
|
||||
requestFocusHelper(false, true);
|
||||
@ -7862,7 +7862,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* Transfers the focus to the next component, as though this Component were
|
||||
* the focus owner.
|
||||
* @see #requestFocus()
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void transferFocus() {
|
||||
nextFocus();
|
||||
@ -8070,7 +8070,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* @param popup the popup menu to be added to the component.
|
||||
* @see #remove(MenuComponent)
|
||||
* @exception NullPointerException if {@code popup} is {@code null}
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void add(PopupMenu popup) {
|
||||
synchronized (getTreeLock()) {
|
||||
@ -8095,7 +8095,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* Removes the specified popup menu from the component.
|
||||
* @param popup the popup menu to be removed
|
||||
* @see #add(PopupMenu)
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public void remove(MenuComponent popup) {
|
||||
@ -8126,7 +8126,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* <code>null</code>.
|
||||
*
|
||||
* @return a string representation of this component's state
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
protected String paramString() {
|
||||
final String thisName = Objects.toString(getName(), "");
|
||||
@ -8140,7 +8140,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
/**
|
||||
* Returns a string representation of this component and its values.
|
||||
* @return a string representation of this component
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public String toString() {
|
||||
return getClass().getName() + '[' + paramString() + ']';
|
||||
@ -8150,7 +8150,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* Prints a listing of this component to the standard system output
|
||||
* stream <code>System.out</code>.
|
||||
* @see java.lang.System#out
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public void list() {
|
||||
list(System.out, 0);
|
||||
@ -8161,7 +8161,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* stream.
|
||||
* @param out a print stream
|
||||
* @throws NullPointerException if {@code out} is {@code null}
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public void list(PrintStream out) {
|
||||
list(out, 0);
|
||||
@ -8174,7 +8174,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* @param indent number of spaces to indent
|
||||
* @see java.io.PrintStream#println(java.lang.Object)
|
||||
* @throws NullPointerException if {@code out} is {@code null}
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public void list(PrintStream out, int indent) {
|
||||
for (int i = 0 ; i < indent ; i++) {
|
||||
@ -8187,7 +8187,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* Prints a listing to the specified print writer.
|
||||
* @param out the print writer to print to
|
||||
* @throws NullPointerException if {@code out} is {@code null}
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void list(PrintWriter out) {
|
||||
list(out, 0);
|
||||
@ -8200,7 +8200,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* @param indent the number of spaces to indent
|
||||
* @throws NullPointerException if {@code out} is {@code null}
|
||||
* @see java.io.PrintStream#println(java.lang.Object)
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void list(PrintWriter out, int indent) {
|
||||
for (int i = 0 ; i < indent ; i++) {
|
||||
|
@ -85,7 +85,7 @@ import sun.security.action.GetBooleanAction;
|
||||
* @see #add(java.awt.Component, int)
|
||||
* @see #getComponent(int)
|
||||
* @see LayoutManager
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public class Container extends Component {
|
||||
|
||||
@ -302,7 +302,7 @@ public class Container extends Component {
|
||||
*
|
||||
* @return the number of components in this panel.
|
||||
* @see #getComponent
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
* @see Component#getTreeLock()
|
||||
*/
|
||||
public int getComponentCount() {
|
||||
@ -384,7 +384,7 @@ public class Container extends Component {
|
||||
* @return the insets of this container.
|
||||
* @see Insets
|
||||
* @see LayoutManager
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public Insets getInsets() {
|
||||
return insets();
|
||||
@ -975,7 +975,7 @@ public class Container extends Component {
|
||||
* @see #validate
|
||||
* @see javax.swing.JComponent#revalidate()
|
||||
* @see LayoutManager
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void add(Component comp, Object constraints) {
|
||||
addImpl(comp, constraints, -1);
|
||||
@ -1078,7 +1078,7 @@ public class Container extends Component {
|
||||
* @see #invalidate
|
||||
* @see LayoutManager
|
||||
* @see LayoutManager2
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
protected void addImpl(Component comp, Object constraints, int index) {
|
||||
synchronized (getTreeLock()) {
|
||||
@ -1202,7 +1202,7 @@ public class Container extends Component {
|
||||
* @see #invalidate
|
||||
* @see #validate
|
||||
* @see #getComponentCount
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void remove(int index) {
|
||||
synchronized (getTreeLock()) {
|
||||
@ -1501,7 +1501,7 @@ public class Container extends Component {
|
||||
* @see LayoutManager#layoutContainer
|
||||
* @see #setLayout
|
||||
* @see #validate
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void doLayout() {
|
||||
layout();
|
||||
@ -1749,7 +1749,7 @@ public class Container extends Component {
|
||||
* @param f The font to become this container's font.
|
||||
* @see Component#getFont
|
||||
* @see #invalidate
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public void setFont(Font f) {
|
||||
boolean shouldinvalidate = false;
|
||||
@ -1834,7 +1834,7 @@ public class Container extends Component {
|
||||
* @see #getLayout
|
||||
* @see LayoutManager#minimumLayoutSize(Container)
|
||||
* @see Component#getMinimumSize
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public Dimension getMinimumSize() {
|
||||
return minimumSize();
|
||||
@ -2539,7 +2539,7 @@ public class Container extends Component {
|
||||
* point is within the bounds of the container the container itself
|
||||
* is returned; otherwise the top-most child is returned.
|
||||
* @see Component#contains
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public Component getComponentAt(int x, int y) {
|
||||
return locate(x, y);
|
||||
@ -2585,7 +2585,7 @@ public class Container extends Component {
|
||||
* or <code>null</code> if the component does
|
||||
* not contain the point.
|
||||
* @see Component#contains
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public Component getComponentAt(Point p) {
|
||||
return getComponentAt(p.x, p.y);
|
||||
@ -2837,7 +2837,7 @@ public class Container extends Component {
|
||||
* @param c the component
|
||||
* @return <code>true</code> if it is an ancestor;
|
||||
* <code>false</code> otherwise.
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public boolean isAncestorOf(Component c) {
|
||||
Container p;
|
||||
@ -3012,7 +3012,7 @@ public class Container extends Component {
|
||||
* @param indent the number of spaces to indent
|
||||
* @throws NullPointerException if {@code out} is {@code null}
|
||||
* @see Component#list(java.io.PrintStream, int)
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public void list(PrintStream out, int indent) {
|
||||
super.list(out, indent);
|
||||
@ -3039,7 +3039,7 @@ public class Container extends Component {
|
||||
* @param indent the number of spaces to indent
|
||||
* @throws NullPointerException if {@code out} is {@code null}
|
||||
* @see Component#list(java.io.PrintWriter, int)
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void list(PrintWriter out, int indent) {
|
||||
super.list(out, indent);
|
||||
|
@ -92,7 +92,7 @@ import java.security.AccessControlException;
|
||||
*
|
||||
* @author Sami Shaio
|
||||
* @author Arthur van Hoff
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public class Dialog extends Window {
|
||||
|
||||
|
@ -57,7 +57,7 @@ import java.io.*;
|
||||
* <code>PGDN</code>, <code>F1</code>, <code>F2</code>, etc).
|
||||
*
|
||||
* @author Sami Shaio
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public class Event implements java.io.Serializable {
|
||||
private transient long data;
|
||||
@ -871,7 +871,7 @@ public class Event implements java.io.Serializable {
|
||||
* @return a string that represents the event and the values
|
||||
* of its member fields.
|
||||
* @see java.awt.Event#paramString
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public String toString() {
|
||||
return getClass().getName() + "[" + paramString() + "]";
|
||||
|
@ -44,7 +44,7 @@ import sun.awt.AWTAccessor;
|
||||
*
|
||||
* @author Sami Shaio
|
||||
* @author Arthur van Hoff
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public class FileDialog extends Dialog {
|
||||
|
||||
@ -176,7 +176,7 @@ public class FileDialog extends Dialog {
|
||||
* <code>FileDialog(parent, "", LOAD)</code>.
|
||||
*
|
||||
* @param parent the owner of the dialog
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public FileDialog(Frame parent) {
|
||||
this(parent, "", LOAD);
|
||||
@ -353,7 +353,7 @@ public class FileDialog extends Dialog {
|
||||
* @see java.awt.FileDialog#getMode
|
||||
* @exception IllegalArgumentException if an illegal file
|
||||
* dialog mode is supplied
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void setMode(int mode) {
|
||||
switch (mode) {
|
||||
|
@ -79,7 +79,7 @@ import java.io.IOException;
|
||||
*
|
||||
* @author Arthur van Hoff
|
||||
* @author Sami Shaio
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
* @see ComponentOrientation
|
||||
*/
|
||||
public class FlowLayout implements LayoutManager, java.io.Serializable {
|
||||
@ -246,7 +246,7 @@ public class FlowLayout implements LayoutManager, java.io.Serializable {
|
||||
* or <code>FlowLayout.TRAILING</code>.
|
||||
* @return the alignment value for this layout
|
||||
* @see java.awt.FlowLayout#setAlignment
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public int getAlignment() {
|
||||
return newAlign;
|
||||
@ -264,7 +264,7 @@ public class FlowLayout implements LayoutManager, java.io.Serializable {
|
||||
* </ul>
|
||||
* @param align one of the alignment values shown above
|
||||
* @see #getAlignment()
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void setAlignment(int align) {
|
||||
this.newAlign = align;
|
||||
@ -295,7 +295,7 @@ public class FlowLayout implements LayoutManager, java.io.Serializable {
|
||||
* and between the components and the borders
|
||||
* of the <code>Container</code>
|
||||
* @see java.awt.FlowLayout#setHgap
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public int getHgap() {
|
||||
return hgap;
|
||||
@ -310,7 +310,7 @@ public class FlowLayout implements LayoutManager, java.io.Serializable {
|
||||
* and between the components and the borders
|
||||
* of the <code>Container</code>
|
||||
* @see java.awt.FlowLayout#getHgap
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void setHgap(int hgap) {
|
||||
this.hgap = hgap;
|
||||
@ -325,7 +325,7 @@ public class FlowLayout implements LayoutManager, java.io.Serializable {
|
||||
* and between the components and the borders
|
||||
* of the <code>Container</code>
|
||||
* @see java.awt.FlowLayout#setVgap
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public int getVgap() {
|
||||
return vgap;
|
||||
@ -339,7 +339,7 @@ public class FlowLayout implements LayoutManager, java.io.Serializable {
|
||||
* and between the components and the borders
|
||||
* of the <code>Container</code>
|
||||
* @see java.awt.FlowLayout#getVgap
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void setVgap(int vgap) {
|
||||
this.vgap = vgap;
|
||||
|
@ -364,7 +364,7 @@ public class Font implements java.io.Serializable
|
||||
/**
|
||||
* The logical name of this <code>Font</code>, as passed to the
|
||||
* constructor.
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*
|
||||
* @serial
|
||||
* @see #getName
|
||||
@ -374,7 +374,7 @@ public class Font implements java.io.Serializable
|
||||
/**
|
||||
* The style of this <code>Font</code>, as passed to the constructor.
|
||||
* This style can be PLAIN, BOLD, ITALIC, or BOLD+ITALIC.
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*
|
||||
* @serial
|
||||
* @see #getStyle()
|
||||
@ -383,7 +383,7 @@ public class Font implements java.io.Serializable
|
||||
|
||||
/**
|
||||
* The point size of this <code>Font</code>, rounded to integer.
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*
|
||||
* @serial
|
||||
* @see #getSize()
|
||||
@ -436,7 +436,7 @@ public class Font implements java.io.Serializable
|
||||
/**
|
||||
* Gets the peer of this <code>Font</code>.
|
||||
* @return the peer of the <code>Font</code>.
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
* @deprecated Font rendering is now platform independent.
|
||||
*/
|
||||
@Deprecated
|
||||
@ -562,7 +562,7 @@ public class Font implements java.io.Serializable
|
||||
* @param size the point size of the {@code Font}
|
||||
* @see GraphicsEnvironment#getAllFonts
|
||||
* @see GraphicsEnvironment#getAvailableFontFamilyNames
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public Font(String name, int style, int size) {
|
||||
this.name = (name != null) ? name : "Default";
|
||||
@ -1180,7 +1180,7 @@ public class Font implements java.io.Serializable
|
||||
*
|
||||
* @see #getName
|
||||
* @see #getFontName
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public String getFamily() {
|
||||
return getFamily_NoClientCode();
|
||||
@ -1240,7 +1240,7 @@ public class Font implements java.io.Serializable
|
||||
* this <code>Font</code>.
|
||||
* @see #getFamily
|
||||
* @see #getFontName
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public String getName() {
|
||||
return name;
|
||||
@ -1286,7 +1286,7 @@ public class Font implements java.io.Serializable
|
||||
* @see #isPlain
|
||||
* @see #isBold
|
||||
* @see #isItalic
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public int getStyle() {
|
||||
return style;
|
||||
@ -1312,7 +1312,7 @@ public class Font implements java.io.Serializable
|
||||
* @see #getSize2D
|
||||
* @see GraphicsConfiguration#getDefaultTransform
|
||||
* @see GraphicsConfiguration#getNormalizingTransform
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public int getSize() {
|
||||
return size;
|
||||
@ -1337,7 +1337,7 @@ public class Font implements java.io.Serializable
|
||||
* PLAIN style;
|
||||
* <code>false</code> otherwise.
|
||||
* @see java.awt.Font#getStyle
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public boolean isPlain() {
|
||||
return style == 0;
|
||||
@ -1350,7 +1350,7 @@ public class Font implements java.io.Serializable
|
||||
* style is BOLD;
|
||||
* <code>false</code> otherwise.
|
||||
* @see java.awt.Font#getStyle
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public boolean isBold() {
|
||||
return (style & BOLD) != 0;
|
||||
@ -1363,7 +1363,7 @@ public class Font implements java.io.Serializable
|
||||
* style is ITALIC;
|
||||
* <code>false</code> otherwise.
|
||||
* @see java.awt.Font#getStyle
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public boolean isItalic() {
|
||||
return (style & ITALIC) != 0;
|
||||
@ -1484,7 +1484,7 @@ public class Font implements java.io.Serializable
|
||||
* describes, or a new default <code>Font</code> if
|
||||
* <code>str</code> is <code>null</code>.
|
||||
* @see #getFamily
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public static Font decode(String str) {
|
||||
String fontName = str;
|
||||
@ -1595,7 +1595,7 @@ public class Font implements java.io.Serializable
|
||||
/**
|
||||
* Returns a hashcode for this <code>Font</code>.
|
||||
* @return a hashcode value for this <code>Font</code>.
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public int hashCode() {
|
||||
if (hash == 0) {
|
||||
@ -1622,7 +1622,7 @@ public class Font implements java.io.Serializable
|
||||
* or if the argument is a <code>Font</code> object
|
||||
* describing the same font as this object;
|
||||
* <code>false</code> otherwise.
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public boolean equals(Object obj) {
|
||||
if (obj == this) {
|
||||
@ -1667,7 +1667,7 @@ public class Font implements java.io.Serializable
|
||||
* representation.
|
||||
* @return a <code>String</code> representation of this
|
||||
* <code>Font</code> object.
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
// NOTE: This method may be called by privileged threads.
|
||||
// DO NOT INVOKE CLIENT CODE ON THIS THREAD!
|
||||
|
@ -94,7 +94,7 @@ import java.text.CharacterIterator;
|
||||
*
|
||||
* @author Jim Graham
|
||||
* @see java.awt.Font
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public abstract class FontMetrics implements java.io.Serializable {
|
||||
|
||||
@ -625,7 +625,6 @@ public abstract class FontMetrics implements java.io.Serializable {
|
||||
* object's values as a <code>String</code>.
|
||||
* @return a <code>String</code> representation of this
|
||||
* <code>FontMetrics</code> object.
|
||||
* @since JDK1.0.
|
||||
*/
|
||||
public String toString() {
|
||||
return getClass().getName() +
|
||||
|
@ -130,7 +130,7 @@ import javax.accessibility.*;
|
||||
* @author Sami Shaio
|
||||
* @see WindowEvent
|
||||
* @see Window#addWindowListener
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public class Frame extends Window implements MenuContainer {
|
||||
|
||||
|
@ -99,7 +99,7 @@ import java.text.AttributedCharacterIterator;
|
||||
* @see java.awt.Graphics#setPaintMode()
|
||||
* @see java.awt.Graphics#setXORMode(java.awt.Color)
|
||||
* @see java.awt.Graphics#setFont(java.awt.Font)
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public abstract class Graphics {
|
||||
|
||||
@ -283,7 +283,7 @@ public abstract class Graphics {
|
||||
* @see java.awt.Graphics#clipRect
|
||||
* @see java.awt.Graphics#setClip(int, int, int, int)
|
||||
* @see java.awt.Graphics#setClip(Shape)
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public abstract Rectangle getClipBounds();
|
||||
|
||||
@ -321,7 +321,7 @@ public abstract class Graphics {
|
||||
* @see java.awt.Graphics#clipRect
|
||||
* @see java.awt.Graphics#setClip(Shape)
|
||||
* @see java.awt.Graphics#getClip
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public abstract void setClip(int x, int y, int width, int height);
|
||||
|
||||
@ -339,7 +339,7 @@ public abstract class Graphics {
|
||||
* @see java.awt.Graphics#clipRect
|
||||
* @see java.awt.Graphics#setClip(int, int, int, int)
|
||||
* @see java.awt.Graphics#setClip(Shape)
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public abstract Shape getClip();
|
||||
|
||||
@ -357,7 +357,7 @@ public abstract class Graphics {
|
||||
* @see java.awt.Graphics#getClip()
|
||||
* @see java.awt.Graphics#clipRect
|
||||
* @see java.awt.Graphics#setClip(int, int, int, int)
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public abstract void setClip(Shape clip);
|
||||
|
||||
@ -694,7 +694,7 @@ public abstract class Graphics {
|
||||
* @param yPoints an array of <i>y</i> points
|
||||
* @param nPoints the total number of points
|
||||
* @see java.awt.Graphics#drawPolygon(int[], int[], int)
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public abstract void drawPolyline(int xPoints[], int yPoints[],
|
||||
int nPoints);
|
||||
@ -1058,7 +1058,7 @@ public abstract class Graphics {
|
||||
* @see java.awt.Image
|
||||
* @see java.awt.image.ImageObserver
|
||||
* @see java.awt.image.ImageObserver#imageUpdate(java.awt.Image, int, int, int, int, int)
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public abstract boolean drawImage(Image img,
|
||||
int dx1, int dy1, int dx2, int dy2,
|
||||
@ -1119,7 +1119,7 @@ public abstract class Graphics {
|
||||
* @see java.awt.Image
|
||||
* @see java.awt.image.ImageObserver
|
||||
* @see java.awt.image.ImageObserver#imageUpdate(java.awt.Image, int, int, int, int, int)
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public abstract boolean drawImage(Image img,
|
||||
int dx1, int dy1, int dx2, int dy2,
|
||||
|
@ -662,7 +662,7 @@ public abstract class Graphics2D extends Graphics {
|
||||
* <code>null</code>
|
||||
* @see java.awt.Graphics#drawBytes
|
||||
* @see java.awt.Graphics#drawChars
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public abstract void drawString(String str, int x, int y);
|
||||
|
||||
@ -968,7 +968,7 @@ public abstract class Graphics2D extends Graphics {
|
||||
* context are relative to this new origin.
|
||||
* @param x the specified x coordinate
|
||||
* @param y the specified y coordinate
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public abstract void translate(int x, int y);
|
||||
|
||||
|
@ -32,7 +32,7 @@ package java.awt;
|
||||
* @author Doug Stein
|
||||
* @author Bill Spitzak (orignial NeWS & OLIT implementation)
|
||||
* @see java.awt.GridBagLayout
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public class GridBagConstraints implements Cloneable, java.io.Serializable {
|
||||
|
||||
|
@ -359,7 +359,7 @@ import java.util.Arrays;
|
||||
* @see java.awt.GridBagConstraints
|
||||
* @see java.awt.GridBagLayoutInfo
|
||||
* @see java.awt.ComponentOrientation
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public class GridBagLayout implements LayoutManager2,
|
||||
java.io.Serializable {
|
||||
@ -562,7 +562,7 @@ java.io.Serializable {
|
||||
* @return the graphics origin of the cell in the top-left
|
||||
* corner of the layout grid
|
||||
* @see java.awt.ComponentOrientation
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public Point getLayoutOrigin () {
|
||||
Point origin = new Point(0,0);
|
||||
@ -580,7 +580,7 @@ java.io.Serializable {
|
||||
* @return an array of two arrays, containing the widths
|
||||
* of the layout columns and
|
||||
* the heights of the layout rows
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public int [][] getLayoutDimensions () {
|
||||
if (layoutInfo == null)
|
||||
@ -606,7 +606,7 @@ java.io.Serializable {
|
||||
* @return an array of two arrays, representing the
|
||||
* horizontal weights of the layout columns
|
||||
* and the vertical weights of the layout rows
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public double [][] getLayoutWeights () {
|
||||
if (layoutInfo == null)
|
||||
@ -647,7 +647,7 @@ java.io.Serializable {
|
||||
* in the layout grid contains the point
|
||||
* (<i>x</i>, <i>y</i>).
|
||||
* @see java.awt.ComponentOrientation
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public Point location(int x, int y) {
|
||||
Point loc = new Point(0,0);
|
||||
|
@ -62,7 +62,7 @@ public class GridBagLayoutInfo implements java.io.Serializable {
|
||||
* grid cells with it's own parameters.
|
||||
* @param width the columns
|
||||
* @param height the rows
|
||||
* @since 6.0
|
||||
* @since 1.6
|
||||
*/
|
||||
GridBagLayoutInfo(int width, int height) {
|
||||
this.width = width;
|
||||
|
@ -88,7 +88,7 @@ package java.awt;
|
||||
* number of rows is set to zero.
|
||||
*
|
||||
* @author Arthur van Hoff
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public class GridLayout implements LayoutManager, java.io.Serializable {
|
||||
/*
|
||||
@ -144,7 +144,7 @@ public class GridLayout implements LayoutManager, java.io.Serializable {
|
||||
/**
|
||||
* Creates a grid layout with a default of one column per component,
|
||||
* in a single row.
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public GridLayout() {
|
||||
this(1, 0, 0, 0);
|
||||
@ -203,7 +203,7 @@ public class GridLayout implements LayoutManager, java.io.Serializable {
|
||||
/**
|
||||
* Gets the number of rows in this layout.
|
||||
* @return the number of rows in this layout
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public int getRows() {
|
||||
return rows;
|
||||
@ -214,7 +214,7 @@ public class GridLayout implements LayoutManager, java.io.Serializable {
|
||||
* @param rows the number of rows in this layout
|
||||
* @exception IllegalArgumentException if the value of both
|
||||
* <code>rows</code> and <code>cols</code> is set to zero
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void setRows(int rows) {
|
||||
if ((rows == 0) && (this.cols == 0)) {
|
||||
@ -226,7 +226,7 @@ public class GridLayout implements LayoutManager, java.io.Serializable {
|
||||
/**
|
||||
* Gets the number of columns in this layout.
|
||||
* @return the number of columns in this layout
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public int getColumns() {
|
||||
return cols;
|
||||
@ -242,7 +242,7 @@ public class GridLayout implements LayoutManager, java.io.Serializable {
|
||||
* @param cols the number of columns in this layout
|
||||
* @exception IllegalArgumentException if the value of both
|
||||
* <code>rows</code> and <code>cols</code> is set to zero
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void setColumns(int cols) {
|
||||
if ((cols == 0) && (this.rows == 0)) {
|
||||
@ -254,7 +254,7 @@ public class GridLayout implements LayoutManager, java.io.Serializable {
|
||||
/**
|
||||
* Gets the horizontal gap between components.
|
||||
* @return the horizontal gap between components
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public int getHgap() {
|
||||
return hgap;
|
||||
@ -263,7 +263,7 @@ public class GridLayout implements LayoutManager, java.io.Serializable {
|
||||
/**
|
||||
* Sets the horizontal gap between components to the specified value.
|
||||
* @param hgap the horizontal gap between components
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void setHgap(int hgap) {
|
||||
this.hgap = hgap;
|
||||
@ -272,7 +272,7 @@ public class GridLayout implements LayoutManager, java.io.Serializable {
|
||||
/**
|
||||
* Gets the vertical gap between components.
|
||||
* @return the vertical gap between components
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public int getVgap() {
|
||||
return vgap;
|
||||
@ -281,7 +281,7 @@ public class GridLayout implements LayoutManager, java.io.Serializable {
|
||||
/**
|
||||
* Sets the vertical gap between components to the specified value.
|
||||
* @param vgap the vertical gap between components
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void setVgap(int vgap) {
|
||||
this.vgap = vgap;
|
||||
|
@ -41,7 +41,7 @@ import sun.awt.image.SurfaceManager;
|
||||
*
|
||||
* @author Sami Shaio
|
||||
* @author Arthur van Hoff
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public abstract class Image {
|
||||
|
||||
@ -164,7 +164,7 @@ public abstract class Image {
|
||||
* @see java.awt.Image#SCALE_SMOOTH
|
||||
* @see java.awt.Image#SCALE_REPLICATE
|
||||
* @see java.awt.Image#SCALE_AREA_AVERAGING
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public Image getScaledInstance(int width, int height, int hints) {
|
||||
ImageFilter filter;
|
||||
@ -180,21 +180,21 @@ public abstract class Image {
|
||||
|
||||
/**
|
||||
* Use the default image-scaling algorithm.
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public static final int SCALE_DEFAULT = 1;
|
||||
|
||||
/**
|
||||
* Choose an image-scaling algorithm that gives higher priority
|
||||
* to scaling speed than smoothness of the scaled image.
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public static final int SCALE_FAST = 2;
|
||||
|
||||
/**
|
||||
* Choose an image-scaling algorithm that gives higher priority
|
||||
* to image smoothness than scaling speed.
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public static final int SCALE_SMOOTH = 4;
|
||||
|
||||
@ -205,7 +205,7 @@ public abstract class Image {
|
||||
* that performs the same algorithm yet integrates more efficiently
|
||||
* into the imaging infrastructure supplied by the toolkit.
|
||||
* @see java.awt.image.ReplicateScaleFilter
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public static final int SCALE_REPLICATE = 8;
|
||||
|
||||
@ -215,7 +215,7 @@ public abstract class Image {
|
||||
* performs the same algorithm yet integrates more efficiently
|
||||
* into the image infrastructure supplied by the toolkit.
|
||||
* @see java.awt.image.AreaAveragingScaleFilter
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public static final int SCALE_AREA_AVERAGING = 16;
|
||||
|
||||
|
@ -35,7 +35,7 @@ package java.awt;
|
||||
* @author Sami Shaio
|
||||
* @see java.awt.LayoutManager
|
||||
* @see java.awt.Container
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public class Insets implements Cloneable, java.io.Serializable {
|
||||
|
||||
@ -130,7 +130,7 @@ public class Insets implements Cloneable, java.io.Serializable {
|
||||
* <code>bottom</code>, and <code>right</code> are all equal.
|
||||
* @return <code>true</code> if the two insets are equal;
|
||||
* otherwise <code>false</code>.
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public boolean equals(Object obj) {
|
||||
if (obj instanceof Insets) {
|
||||
|
@ -49,7 +49,7 @@ import javax.accessibility.*;
|
||||
* style="float:center; margin: 7px 10px;">
|
||||
*
|
||||
* @author Sami Shaio
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public class Label extends Component implements Accessible {
|
||||
|
||||
@ -73,7 +73,6 @@ public class Label extends Component implements Accessible {
|
||||
|
||||
/**
|
||||
* Indicates that the label should be right justified.
|
||||
* @since JDK1.0t.
|
||||
*/
|
||||
public static final int RIGHT = 2;
|
||||
|
||||
|
@ -104,7 +104,7 @@ import javax.accessibility.*;
|
||||
* @see java.awt.event.ItemListener
|
||||
* @see java.awt.event.ActionEvent
|
||||
* @see java.awt.event.ActionListener
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public class List extends Component implements ItemSelectable, Accessible {
|
||||
/**
|
||||
@ -199,7 +199,7 @@ public class List extends Component implements ItemSelectable, Accessible {
|
||||
* @exception HeadlessException if GraphicsEnvironment.isHeadless()
|
||||
* returns true.
|
||||
* @see java.awt.GraphicsEnvironment#isHeadless
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public List(int rows) throws HeadlessException {
|
||||
this(rows, false);
|
||||
@ -275,7 +275,7 @@ public class List extends Component implements ItemSelectable, Accessible {
|
||||
* Gets the number of items in the list.
|
||||
* @return the number of items in the list
|
||||
* @see #getItem
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public int getItemCount() {
|
||||
return countItems();
|
||||
@ -315,7 +315,7 @@ public class List extends Component implements ItemSelectable, Accessible {
|
||||
* @see #select
|
||||
* @see #deselect
|
||||
* @see #isIndexSelected
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public synchronized String[] getItems() {
|
||||
String itemCopies[] = new String[items.size()];
|
||||
@ -326,7 +326,7 @@ public class List extends Component implements ItemSelectable, Accessible {
|
||||
/**
|
||||
* Adds the specified item to the end of scrolling list.
|
||||
* @param item the item to be added
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void add(String item) {
|
||||
addItem(item);
|
||||
@ -351,7 +351,7 @@ public class List extends Component implements ItemSelectable, Accessible {
|
||||
* if this parameter is <code>null</code> then the item is
|
||||
* treated as an empty string, <code>""</code>
|
||||
* @param index the position at which to add the item
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void add(String item, int index) {
|
||||
addItem(item, index);
|
||||
@ -399,7 +399,7 @@ public class List extends Component implements ItemSelectable, Accessible {
|
||||
* Removes all items from this list.
|
||||
* @see #remove
|
||||
* @see #delItems
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void removeAll() {
|
||||
clear();
|
||||
@ -426,7 +426,7 @@ public class List extends Component implements ItemSelectable, Accessible {
|
||||
* @param item the item to remove from the list
|
||||
* @exception IllegalArgumentException
|
||||
* if the item doesn't exist in the list
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public synchronized void remove(String item) {
|
||||
int index = items.indexOf(item);
|
||||
@ -445,7 +445,7 @@ public class List extends Component implements ItemSelectable, Accessible {
|
||||
* only selected item in the list, the list is set to have no selection.
|
||||
* @param position the index of the item to delete
|
||||
* @see #add(String, int)
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
* @exception ArrayIndexOutOfBoundsException
|
||||
* if the <code>position</code> is less than 0 or
|
||||
* greater than <code>getItemCount()-1</code>
|
||||
@ -639,7 +639,7 @@ public class List extends Component implements ItemSelectable, Accessible {
|
||||
* selected; <code>false</code> otherwise
|
||||
* @see #select
|
||||
* @see #deselect
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public boolean isIndexSelected(int index) {
|
||||
return isSelected(index);
|
||||
@ -675,7 +675,7 @@ public class List extends Component implements ItemSelectable, Accessible {
|
||||
* @return <code>true</code> if this list allows multiple
|
||||
* selections; otherwise, <code>false</code>
|
||||
* @see #setMultipleMode
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public boolean isMultipleMode() {
|
||||
return allowsMultipleSelections();
|
||||
@ -702,7 +702,7 @@ public class List extends Component implements ItemSelectable, Accessible {
|
||||
* are allowed; otherwise, only one item from
|
||||
* the list can be selected at once
|
||||
* @see #isMultipleMode
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void setMultipleMode(boolean b) {
|
||||
setMultipleSelections(b);
|
||||
@ -753,7 +753,7 @@ public class List extends Component implements ItemSelectable, Accessible {
|
||||
* @return the preferred dimensions for displaying this scrolling list
|
||||
* given that the specified number of rows must be visible
|
||||
* @see java.awt.Component#getPreferredSize
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public Dimension getPreferredSize(int rows) {
|
||||
return preferredSize(rows);
|
||||
@ -777,7 +777,7 @@ public class List extends Component implements ItemSelectable, Accessible {
|
||||
* Gets the preferred size of this scrolling list.
|
||||
* @return the preferred dimensions for displaying this scrolling list
|
||||
* @see java.awt.Component#getPreferredSize
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public Dimension getPreferredSize() {
|
||||
return preferredSize();
|
||||
@ -803,7 +803,7 @@ public class List extends Component implements ItemSelectable, Accessible {
|
||||
* @return the minimum dimensions for displaying this scrolling list
|
||||
* given that the specified number of rows must be visible
|
||||
* @see java.awt.Component#getMinimumSize
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public Dimension getMinimumSize(int rows) {
|
||||
return minimumSize(rows);
|
||||
@ -828,7 +828,7 @@ public class List extends Component implements ItemSelectable, Accessible {
|
||||
* @return the minimum dimensions needed
|
||||
* to display this scrolling list
|
||||
* @see java.awt.Component#getMinimumSize()
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public Dimension getMinimumSize() {
|
||||
return minimumSize();
|
||||
@ -861,7 +861,7 @@ public class List extends Component implements ItemSelectable, Accessible {
|
||||
* @see #deselect
|
||||
* @see java.awt.event.ItemEvent
|
||||
* @see java.awt.event.ItemListener
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public synchronized void addItemListener(ItemListener l) {
|
||||
if (l == null) {
|
||||
@ -884,7 +884,7 @@ public class List extends Component implements ItemSelectable, Accessible {
|
||||
* @see #getItemListeners
|
||||
* @see java.awt.event.ItemEvent
|
||||
* @see java.awt.event.ItemListener
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public synchronized void removeItemListener(ItemListener l) {
|
||||
if (l == null) {
|
||||
@ -927,7 +927,7 @@ public class List extends Component implements ItemSelectable, Accessible {
|
||||
* @see #getActionListeners
|
||||
* @see java.awt.event.ActionEvent
|
||||
* @see java.awt.event.ActionListener
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public synchronized void addActionListener(ActionListener l) {
|
||||
if (l == null) {
|
||||
@ -951,7 +951,7 @@ public class List extends Component implements ItemSelectable, Accessible {
|
||||
* @see #getActionListeners
|
||||
* @see java.awt.event.ActionEvent
|
||||
* @see java.awt.event.ActionListener
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public synchronized void removeActionListener(ActionListener l) {
|
||||
if (l == null) {
|
||||
@ -1061,7 +1061,7 @@ public class List extends Component implements ItemSelectable, Accessible {
|
||||
* @see java.awt.event.ItemEvent
|
||||
* @see #processActionEvent
|
||||
* @see #processItemEvent
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
protected void processEvent(AWTEvent e) {
|
||||
if (e instanceof ItemEvent) {
|
||||
@ -1096,7 +1096,7 @@ public class List extends Component implements ItemSelectable, Accessible {
|
||||
* @see java.awt.event.ItemListener
|
||||
* @see #addItemListener
|
||||
* @see java.awt.Component#enableEvents
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
protected void processItemEvent(ItemEvent e) {
|
||||
ItemListener listener = itemListener;
|
||||
@ -1127,7 +1127,7 @@ public class List extends Component implements ItemSelectable, Accessible {
|
||||
* @see java.awt.event.ActionListener
|
||||
* @see #addActionListener
|
||||
* @see java.awt.Component#enableEvents
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
protected void processActionEvent(ActionEvent e) {
|
||||
ActionListener listener = actionListener;
|
||||
|
@ -164,7 +164,7 @@ import sun.awt.image.MultiResolutionToolkitImage;
|
||||
* } </pre></blockquote><hr>
|
||||
*
|
||||
* @author Jim Graham
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public class MediaTracker implements java.io.Serializable {
|
||||
|
||||
@ -724,7 +724,7 @@ public class MediaTracker implements java.io.Serializable {
|
||||
* @param image the image to be removed
|
||||
* @see java.awt.MediaTracker#removeImage(java.awt.Image, int)
|
||||
* @see java.awt.MediaTracker#removeImage(java.awt.Image, int, int, int)
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public synchronized void removeImage(Image image) {
|
||||
removeImageImpl(image);
|
||||
@ -763,7 +763,7 @@ public class MediaTracker implements java.io.Serializable {
|
||||
* @param id the tracking ID from which to remove the image
|
||||
* @see java.awt.MediaTracker#removeImage(java.awt.Image)
|
||||
* @see java.awt.MediaTracker#removeImage(java.awt.Image, int, int, int)
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public synchronized void removeImage(Image image, int id) {
|
||||
removeImageImpl(image, id);
|
||||
@ -803,7 +803,7 @@ public class MediaTracker implements java.io.Serializable {
|
||||
* @param height the height to remove (-1 for unscaled)
|
||||
* @see java.awt.MediaTracker#removeImage(java.awt.Image)
|
||||
* @see java.awt.MediaTracker#removeImage(java.awt.Image, int)
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public synchronized void removeImage(Image image, int id,
|
||||
int width, int height) {
|
||||
|
@ -53,7 +53,7 @@ import sun.awt.AWTAccessor;
|
||||
* @author Sami Shaio
|
||||
* @see java.awt.MenuItem
|
||||
* @see java.awt.CheckboxMenuItem
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public class Menu extends MenuItem implements MenuContainer, Accessible {
|
||||
|
||||
@ -118,7 +118,7 @@ public class Menu extends MenuItem implements MenuContainer, Accessible {
|
||||
* @exception HeadlessException if GraphicsEnvironment.isHeadless()
|
||||
* returns true.
|
||||
* @see java.awt.GraphicsEnvironment#isHeadless
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public Menu() throws HeadlessException {
|
||||
this("", false);
|
||||
@ -151,7 +151,6 @@ public class Menu extends MenuItem implements MenuContainer, Accessible {
|
||||
* @exception HeadlessException if GraphicsEnvironment.isHeadless()
|
||||
* returns true.
|
||||
* @see java.awt.GraphicsEnvironment#isHeadless
|
||||
* @since JDK1.0.
|
||||
*/
|
||||
public Menu(String label, boolean tearOff) throws HeadlessException {
|
||||
super(label);
|
||||
@ -215,7 +214,7 @@ public class Menu extends MenuItem implements MenuContainer, Accessible {
|
||||
/**
|
||||
* Get the number of items in this menu.
|
||||
* @return the number of items in this menu.
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public int getItemCount() {
|
||||
return countItems();
|
||||
@ -303,7 +302,7 @@ public class Menu extends MenuItem implements MenuContainer, Accessible {
|
||||
* @see java.awt.Menu#add(java.awt.MenuItem)
|
||||
* @exception IllegalArgumentException if the value of
|
||||
* <code>index</code> is less than zero
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
|
||||
public void insert(MenuItem menuitem, int index) {
|
||||
@ -347,7 +346,7 @@ public class Menu extends MenuItem implements MenuContainer, Accessible {
|
||||
* @see java.awt.Menu#add(java.awt.MenuItem)
|
||||
* @exception IllegalArgumentException if the value of
|
||||
* <code>index</code> is less than zero
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
|
||||
public void insert(String label, int index) {
|
||||
@ -369,7 +368,7 @@ public class Menu extends MenuItem implements MenuContainer, Accessible {
|
||||
* @exception IllegalArgumentException if the value of
|
||||
* <code>index</code> is less than 0.
|
||||
* @see java.awt.Menu#addSeparator
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
|
||||
public void insertSeparator(int index) {
|
||||
@ -436,7 +435,7 @@ public class Menu extends MenuItem implements MenuContainer, Accessible {
|
||||
|
||||
/**
|
||||
* Removes all items from this menu.
|
||||
* @since JDK1.0.
|
||||
* @since 1.1
|
||||
*/
|
||||
public void removeAll() {
|
||||
synchronized (getTreeLock()) {
|
||||
|
@ -65,7 +65,7 @@ import javax.accessibility.*;
|
||||
* @see java.awt.Menu
|
||||
* @see java.awt.MenuItem
|
||||
* @see java.awt.MenuShortcut
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public class MenuBar extends MenuComponent implements MenuContainer, Accessible {
|
||||
|
||||
@ -272,7 +272,7 @@ public class MenuBar extends MenuComponent implements MenuContainer, Accessible
|
||||
/**
|
||||
* Gets the number of menus on the menu bar.
|
||||
* @return the number of menus on the menu bar.
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public int getMenuCount() {
|
||||
return countMenus();
|
||||
@ -318,7 +318,7 @@ public class MenuBar extends MenuComponent implements MenuContainer, Accessible
|
||||
* @return an enumeration of menu shortcuts that this
|
||||
* menu bar is managing.
|
||||
* @see java.awt.MenuShortcut
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public synchronized Enumeration<MenuShortcut> shortcuts() {
|
||||
Vector<MenuShortcut> shortcuts = new Vector<>();
|
||||
@ -341,7 +341,7 @@ public class MenuBar extends MenuComponent implements MenuContainer, Accessible
|
||||
* @param s the specified menu shortcut.
|
||||
* @see java.awt.MenuItem
|
||||
* @see java.awt.MenuShortcut
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public MenuItem getShortcutMenuItem(MenuShortcut s) {
|
||||
int nmenus = getMenuCount();
|
||||
@ -387,7 +387,7 @@ public class MenuBar extends MenuComponent implements MenuContainer, Accessible
|
||||
/**
|
||||
* Deletes the specified menu shortcut.
|
||||
* @param s the menu shortcut to delete.
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void deleteShortcut(MenuShortcut s) {
|
||||
int nmenus = getMenuCount();
|
||||
|
@ -45,7 +45,7 @@ import java.security.AccessController;
|
||||
* through the method <code>processEvent</code>.
|
||||
*
|
||||
* @author Arthur van Hoff
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public abstract class MenuComponent implements java.io.Serializable {
|
||||
|
||||
@ -175,7 +175,7 @@ public abstract class MenuComponent implements java.io.Serializable {
|
||||
* Gets the name of the menu component.
|
||||
* @return the name of the menu component
|
||||
* @see java.awt.MenuComponent#setName(java.lang.String)
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public String getName() {
|
||||
if (name == null && !nameExplicitlySet) {
|
||||
@ -191,7 +191,7 @@ public abstract class MenuComponent implements java.io.Serializable {
|
||||
* Sets the name of the component to the specified string.
|
||||
* @param name the name of the menu component
|
||||
* @see java.awt.MenuComponent#getName
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void setName(String name) {
|
||||
synchronized(this) {
|
||||
@ -373,7 +373,7 @@ public abstract class MenuComponent implements java.io.Serializable {
|
||||
* exception.
|
||||
*
|
||||
* @param e the event
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
protected void processEvent(AWTEvent e) {
|
||||
}
|
||||
|
@ -176,7 +176,7 @@ public class MenuItem extends MenuComponent implements Accessible {
|
||||
* @exception HeadlessException if GraphicsEnvironment.isHeadless()
|
||||
* returns true.
|
||||
* @see java.awt.GraphicsEnvironment#isHeadless
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public MenuItem() throws HeadlessException {
|
||||
this("", null);
|
||||
@ -192,7 +192,7 @@ public class MenuItem extends MenuComponent implements Accessible {
|
||||
* @exception HeadlessException if GraphicsEnvironment.isHeadless()
|
||||
* returns true.
|
||||
* @see java.awt.GraphicsEnvironment#isHeadless
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public MenuItem(String label) throws HeadlessException {
|
||||
this(label, null);
|
||||
@ -209,7 +209,7 @@ public class MenuItem extends MenuComponent implements Accessible {
|
||||
* @exception HeadlessException if GraphicsEnvironment.isHeadless()
|
||||
* returns true.
|
||||
* @see java.awt.GraphicsEnvironment#isHeadless
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public MenuItem(String label, MenuShortcut s) throws HeadlessException {
|
||||
this.label = label;
|
||||
@ -242,7 +242,7 @@ public class MenuItem extends MenuComponent implements Accessible {
|
||||
* @return the label of this menu item, or <code>null</code>
|
||||
if this menu item has no label.
|
||||
* @see java.awt.MenuItem#setLabel
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public String getLabel() {
|
||||
return label;
|
||||
@ -252,7 +252,7 @@ public class MenuItem extends MenuComponent implements Accessible {
|
||||
* Sets the label for this menu item to the specified label.
|
||||
* @param label the new label, or <code>null</code> for no label.
|
||||
* @see java.awt.MenuItem#getLabel
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public synchronized void setLabel(String label) {
|
||||
this.label = label;
|
||||
@ -265,7 +265,7 @@ public class MenuItem extends MenuComponent implements Accessible {
|
||||
/**
|
||||
* Checks whether this menu item is enabled.
|
||||
* @see java.awt.MenuItem#setEnabled
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public boolean isEnabled() {
|
||||
return enabled;
|
||||
@ -276,7 +276,7 @@ public class MenuItem extends MenuComponent implements Accessible {
|
||||
* @param b if <code>true</code>, enables this menu item;
|
||||
* if <code>false</code>, disables it.
|
||||
* @see java.awt.MenuItem#isEnabled
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public synchronized void setEnabled(boolean b) {
|
||||
enable(b);
|
||||
@ -327,7 +327,7 @@ public class MenuItem extends MenuComponent implements Accessible {
|
||||
* @return the menu shortcut associated with this menu item,
|
||||
* or <code>null</code> if none has been specified.
|
||||
* @see java.awt.MenuItem#setShortcut
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public MenuShortcut getShortcut() {
|
||||
return shortcut;
|
||||
@ -340,7 +340,7 @@ public class MenuItem extends MenuComponent implements Accessible {
|
||||
* @param s the menu shortcut to associate
|
||||
* with this menu item.
|
||||
* @see java.awt.MenuItem#getShortcut
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void setShortcut(MenuShortcut s) {
|
||||
shortcut = s;
|
||||
@ -353,7 +353,7 @@ public class MenuItem extends MenuComponent implements Accessible {
|
||||
/**
|
||||
* Delete any <code>MenuShortcut</code> object associated
|
||||
* with this menu item.
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void deleteShortcut() {
|
||||
shortcut = null;
|
||||
@ -455,7 +455,7 @@ public class MenuItem extends MenuComponent implements Accessible {
|
||||
* @see java.awt.MenuItem#processEvent
|
||||
* @see java.awt.MenuItem#disableEvents
|
||||
* @see java.awt.Component#enableEvents
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
protected final void enableEvents(long eventsToEnable) {
|
||||
eventMask |= eventsToEnable;
|
||||
@ -470,7 +470,7 @@ public class MenuItem extends MenuComponent implements Accessible {
|
||||
* @see java.awt.MenuItem#processEvent
|
||||
* @see java.awt.MenuItem#enableEvents
|
||||
* @see java.awt.Component#disableEvents
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
protected final void disableEvents(long eventsToDisable) {
|
||||
eventMask &= ~eventsToDisable;
|
||||
@ -485,7 +485,7 @@ public class MenuItem extends MenuComponent implements Accessible {
|
||||
* @param command the action command to be set
|
||||
* for this menu item.
|
||||
* @see java.awt.MenuItem#getActionCommand
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void setActionCommand(String command) {
|
||||
actionCommand = command;
|
||||
@ -495,7 +495,7 @@ public class MenuItem extends MenuComponent implements Accessible {
|
||||
* Gets the command name of the action event that is fired
|
||||
* by this menu item.
|
||||
* @see java.awt.MenuItem#setActionCommand
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public String getActionCommand() {
|
||||
return getActionCommandImpl();
|
||||
@ -518,7 +518,7 @@ public class MenuItem extends MenuComponent implements Accessible {
|
||||
* @see #getActionListeners
|
||||
* @see java.awt.event.ActionEvent
|
||||
* @see java.awt.event.ActionListener
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public synchronized void addActionListener(ActionListener l) {
|
||||
if (l == null) {
|
||||
@ -540,7 +540,7 @@ public class MenuItem extends MenuComponent implements Accessible {
|
||||
* @see #getActionListeners
|
||||
* @see java.awt.event.ActionEvent
|
||||
* @see java.awt.event.ActionListener
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public synchronized void removeActionListener(ActionListener l) {
|
||||
if (l == null) {
|
||||
@ -621,7 +621,7 @@ public class MenuItem extends MenuComponent implements Accessible {
|
||||
*
|
||||
* @param e the event
|
||||
* @see java.awt.MenuItem#processActionEvent
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
protected void processEvent(AWTEvent e) {
|
||||
if (e instanceof ActionEvent) {
|
||||
@ -661,7 +661,7 @@ public class MenuItem extends MenuComponent implements Accessible {
|
||||
* @see java.awt.event.ActionEvent
|
||||
* @see java.awt.event.ActionListener
|
||||
* @see java.awt.MenuItem#enableEvents
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
protected void processActionEvent(ActionEvent e) {
|
||||
ActionListener listener = actionListener;
|
||||
|
@ -54,7 +54,7 @@ import java.awt.event.KeyEvent;
|
||||
* via {@link Toolkit#getMenuShortcutKeyMask}.
|
||||
*
|
||||
* @author Thomas Ball
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public class MenuShortcut implements java.io.Serializable
|
||||
{
|
||||
@ -71,7 +71,7 @@ public class MenuShortcut implements java.io.Serializable
|
||||
* @see #getKey()
|
||||
* @see #usesShiftModifier()
|
||||
* @see java.awt.event.KeyEvent
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
int key;
|
||||
|
||||
@ -82,7 +82,7 @@ public class MenuShortcut implements java.io.Serializable
|
||||
*
|
||||
* @serial
|
||||
* @see #usesShiftModifier()
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
boolean usesShift;
|
||||
|
||||
@ -120,7 +120,7 @@ public class MenuShortcut implements java.io.Serializable
|
||||
* Returns the raw keycode of this MenuShortcut.
|
||||
* @return the raw keycode of this MenuShortcut.
|
||||
* @see java.awt.event.KeyEvent
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public int getKey() {
|
||||
return key;
|
||||
@ -130,7 +130,7 @@ public class MenuShortcut implements java.io.Serializable
|
||||
* Returns whether this MenuShortcut must be invoked using the SHIFT key.
|
||||
* @return <code>true</code> if this MenuShortcut must be invoked using the
|
||||
* SHIFT key, <code>false</code> otherwise.
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public boolean usesShiftModifier() {
|
||||
return usesShift;
|
||||
@ -143,7 +143,7 @@ public class MenuShortcut implements java.io.Serializable
|
||||
* @param s the MenuShortcut to compare with this.
|
||||
* @return <code>true</code> if this MenuShortcut is the same as another,
|
||||
* <code>false</code> otherwise.
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public boolean equals(MenuShortcut s) {
|
||||
return (s != null && (s.getKey() == key) &&
|
||||
@ -178,7 +178,7 @@ public class MenuShortcut implements java.io.Serializable
|
||||
/**
|
||||
* Returns an internationalized description of the MenuShortcut.
|
||||
* @return a string representation of this MenuShortcut.
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public String toString() {
|
||||
int modifiers = 0;
|
||||
@ -196,7 +196,7 @@ public class MenuShortcut implements java.io.Serializable
|
||||
* Returns the parameter string representing the state of this
|
||||
* MenuShortcut. This string is useful for debugging.
|
||||
* @return the parameter string of this MenuShortcut.
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
protected String paramString() {
|
||||
String str = "key=" + key;
|
||||
|
@ -36,7 +36,7 @@ import javax.accessibility.*;
|
||||
*
|
||||
* @author Sami Shaio
|
||||
* @see java.awt.FlowLayout
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public class Panel extends Container implements Accessible {
|
||||
private static final String base = "panel";
|
||||
@ -59,7 +59,7 @@ public class Panel extends Container implements Accessible {
|
||||
/**
|
||||
* Creates a new panel with the specified layout manager.
|
||||
* @param layout the layout manager for this panel.
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public Panel(LayoutManager layout) {
|
||||
setLayout(layout);
|
||||
|
@ -393,7 +393,7 @@ public class ScrollPaneAdjustable implements Adjustable, Serializable {
|
||||
* @see #getAdjustmentListeners
|
||||
* @see java.awt.event.AdjustmentListener
|
||||
* @see java.awt.event.AdjustmentEvent
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public synchronized void removeAdjustmentListener(AdjustmentListener l){
|
||||
if (l == null) {
|
||||
|
@ -161,7 +161,7 @@ import javax.accessibility.*;
|
||||
* @author Sami Shaio
|
||||
* @see java.awt.event.AdjustmentEvent
|
||||
* @see java.awt.event.AdjustmentListener
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public class Scrollbar extends Component implements Adjustable, Accessible {
|
||||
|
||||
@ -460,7 +460,7 @@ public class Scrollbar extends Component implements Adjustable, Accessible {
|
||||
* @exception IllegalArgumentException if the value supplied
|
||||
* for <code>orientation</code> is not a
|
||||
* legal value
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void setOrientation(int orientation) {
|
||||
synchronized (getTreeLock()) {
|
||||
@ -566,7 +566,7 @@ public class Scrollbar extends Component implements Adjustable, Accessible {
|
||||
* @param newMinimum the new minimum value for this scroll bar
|
||||
* @see java.awt.Scrollbar#setValues
|
||||
* @see java.awt.Scrollbar#setMaximum
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void setMinimum(int newMinimum) {
|
||||
// No checks are necessary in this method since minimum is
|
||||
@ -611,7 +611,7 @@ public class Scrollbar extends Component implements Adjustable, Accessible {
|
||||
* for this scroll bar
|
||||
* @see java.awt.Scrollbar#setValues
|
||||
* @see java.awt.Scrollbar#setMinimum
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void setMaximum(int newMaximum) {
|
||||
// minimum is checked first in setValues, so we need to
|
||||
@ -649,7 +649,7 @@ public class Scrollbar extends Component implements Adjustable, Accessible {
|
||||
*
|
||||
* @return the visible amount of this scroll bar
|
||||
* @see java.awt.Scrollbar#setVisibleAmount
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public int getVisibleAmount() {
|
||||
return getVisible();
|
||||
@ -697,7 +697,7 @@ public class Scrollbar extends Component implements Adjustable, Accessible {
|
||||
* @param newAmount the new visible amount
|
||||
* @see java.awt.Scrollbar#getVisibleAmount
|
||||
* @see java.awt.Scrollbar#setValues
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void setVisibleAmount(int newAmount) {
|
||||
// Use setValues so that a consistent policy relating
|
||||
@ -722,7 +722,7 @@ public class Scrollbar extends Component implements Adjustable, Accessible {
|
||||
* @param v the amount by which to increment or decrement
|
||||
* the scroll bar's value
|
||||
* @see java.awt.Scrollbar#getUnitIncrement
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void setUnitIncrement(int v) {
|
||||
setLineIncrement(v);
|
||||
@ -761,7 +761,7 @@ public class Scrollbar extends Component implements Adjustable, Accessible {
|
||||
*
|
||||
* @return the unit increment of this scroll bar
|
||||
* @see java.awt.Scrollbar#setUnitIncrement
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public int getUnitIncrement() {
|
||||
return getLineIncrement();
|
||||
@ -790,7 +790,7 @@ public class Scrollbar extends Component implements Adjustable, Accessible {
|
||||
* @param v the amount by which to increment or decrement
|
||||
* the scroll bar's value
|
||||
* @see java.awt.Scrollbar#getBlockIncrement
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void setBlockIncrement(int v) {
|
||||
setPageIncrement(v);
|
||||
@ -826,7 +826,7 @@ public class Scrollbar extends Component implements Adjustable, Accessible {
|
||||
*
|
||||
* @return the block increment of this scroll bar
|
||||
* @see java.awt.Scrollbar#setBlockIncrement
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public int getBlockIncrement() {
|
||||
return getPageIncrement();
|
||||
@ -972,7 +972,7 @@ public class Scrollbar extends Component implements Adjustable, Accessible {
|
||||
* @see #getAdjustmentListeners
|
||||
* @see java.awt.event.AdjustmentEvent
|
||||
* @see java.awt.event.AdjustmentListener
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public synchronized void addAdjustmentListener(AdjustmentListener l) {
|
||||
if (l == null) {
|
||||
@ -995,7 +995,7 @@ public class Scrollbar extends Component implements Adjustable, Accessible {
|
||||
* @see #getAdjustmentListeners
|
||||
* @see java.awt.event.AdjustmentEvent
|
||||
* @see java.awt.event.AdjustmentListener
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public synchronized void removeAdjustmentListener(AdjustmentListener l) {
|
||||
if (l == null) {
|
||||
@ -1086,7 +1086,7 @@ public class Scrollbar extends Component implements Adjustable, Accessible {
|
||||
* @param e the event
|
||||
* @see java.awt.event.AdjustmentEvent
|
||||
* @see java.awt.Scrollbar#processAdjustmentEvent
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
protected void processEvent(AWTEvent e) {
|
||||
if (e instanceof AdjustmentEvent) {
|
||||
@ -1118,7 +1118,7 @@ public class Scrollbar extends Component implements Adjustable, Accessible {
|
||||
* @see java.awt.event.AdjustmentListener
|
||||
* @see java.awt.Scrollbar#addAdjustmentListener
|
||||
* @see java.awt.Component#enableEvents
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
protected void processAdjustmentEvent(AdjustmentEvent e) {
|
||||
AdjustmentListener listener = adjustmentListener;
|
||||
|
@ -51,7 +51,7 @@ import javax.accessibility.*;
|
||||
* </pre></blockquote><hr>
|
||||
*
|
||||
* @author Sami Shaio
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public class TextArea extends TextComponent {
|
||||
|
||||
@ -84,25 +84,25 @@ public class TextArea extends TextComponent {
|
||||
|
||||
/**
|
||||
* Create and display both vertical and horizontal scrollbars.
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public static final int SCROLLBARS_BOTH = 0;
|
||||
|
||||
/**
|
||||
* Create and display vertical scrollbar only.
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public static final int SCROLLBARS_VERTICAL_ONLY = 1;
|
||||
|
||||
/**
|
||||
* Create and display horizontal scrollbar only.
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public static final int SCROLLBARS_HORIZONTAL_ONLY = 2;
|
||||
|
||||
/**
|
||||
* Do not create or display any scrollbars for the text area.
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public static final int SCROLLBARS_NONE = 3;
|
||||
|
||||
@ -248,7 +248,7 @@ public class TextArea extends TextComponent {
|
||||
* <code>columns</code> is set to <code>0</code>
|
||||
* @param scrollbars a constant that determines what
|
||||
* scrollbars are created to view the text area
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
* @exception HeadlessException if
|
||||
* <code>GraphicsEnvironment.isHeadless</code> returns true
|
||||
* @see java.awt.GraphicsEnvironment#isHeadless()
|
||||
@ -307,7 +307,7 @@ public class TextArea extends TextComponent {
|
||||
* @see java.awt.TextComponent#setText
|
||||
* @see java.awt.TextArea#replaceRange
|
||||
* @see java.awt.TextArea#append
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void insert(String str, int pos) {
|
||||
insertText(str, pos);
|
||||
@ -335,7 +335,7 @@ public class TextArea extends TextComponent {
|
||||
*
|
||||
* @param str the non-<code>null</code> text to append
|
||||
* @see java.awt.TextArea#insert
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void append(String str) {
|
||||
appendText(str);
|
||||
@ -371,7 +371,7 @@ public class TextArea extends TextComponent {
|
||||
* @param start the start position
|
||||
* @param end the end position
|
||||
* @see java.awt.TextArea#insert
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void replaceRange(String str, int start, int end) {
|
||||
replaceText(str, start, end);
|
||||
@ -396,7 +396,7 @@ public class TextArea extends TextComponent {
|
||||
* @return the number of rows in the text area
|
||||
* @see #setRows(int)
|
||||
* @see #getColumns()
|
||||
* @since JDK1
|
||||
* @since 1.0
|
||||
*/
|
||||
public int getRows() {
|
||||
return rows;
|
||||
@ -410,7 +410,7 @@ public class TextArea extends TextComponent {
|
||||
* @exception IllegalArgumentException if the value
|
||||
* supplied for <code>rows</code>
|
||||
* is less than <code>0</code>
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void setRows(int rows) {
|
||||
int oldVal = this.rows;
|
||||
@ -441,7 +441,7 @@ public class TextArea extends TextComponent {
|
||||
* @exception IllegalArgumentException if the value
|
||||
* supplied for <code>columns</code>
|
||||
* is less than <code>0</code>
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void setColumns(int columns) {
|
||||
int oldVal = this.columns;
|
||||
@ -469,7 +469,7 @@ public class TextArea extends TextComponent {
|
||||
* @see java.awt.TextArea#SCROLLBARS_HORIZONTAL_ONLY
|
||||
* @see java.awt.TextArea#SCROLLBARS_NONE
|
||||
* @see java.awt.TextArea#TextArea(java.lang.String, int, int, int)
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public int getScrollbarVisibility() {
|
||||
return scrollbarVisibility;
|
||||
@ -485,7 +485,7 @@ public class TextArea extends TextComponent {
|
||||
* the text area with the specified
|
||||
* number of rows and columns
|
||||
* @see java.awt.Component#getPreferredSize
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public Dimension getPreferredSize(int rows, int columns) {
|
||||
return preferredSize(rows, columns);
|
||||
@ -509,7 +509,7 @@ public class TextArea extends TextComponent {
|
||||
* Determines the preferred size of this text area.
|
||||
* @return the preferred dimensions needed for this text area
|
||||
* @see java.awt.Component#getPreferredSize
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public Dimension getPreferredSize() {
|
||||
return preferredSize();
|
||||
@ -537,7 +537,7 @@ public class TextArea extends TextComponent {
|
||||
* the text area with the specified
|
||||
* number of rows and columns
|
||||
* @see java.awt.Component#getMinimumSize
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public Dimension getMinimumSize(int rows, int columns) {
|
||||
return minimumSize(rows, columns);
|
||||
@ -561,7 +561,7 @@ public class TextArea extends TextComponent {
|
||||
* Determines the minimum size of this text area.
|
||||
* @return the preferred dimensions needed for this text area
|
||||
* @see java.awt.Component#getPreferredSize
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public Dimension getMinimumSize() {
|
||||
return minimumSize();
|
||||
|
@ -55,7 +55,7 @@ import sun.awt.InputMethodSupport;
|
||||
*
|
||||
* @author Sami Shaio
|
||||
* @author Arthur van Hoff
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public class TextComponent extends Component implements Accessible {
|
||||
|
||||
@ -268,7 +268,7 @@ public class TextComponent extends Component implements Accessible {
|
||||
* @return <code>true</code> if this text component is
|
||||
* editable; <code>false</code> otherwise.
|
||||
* @see java.awt.TextComponent#setEditable
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public boolean isEditable() {
|
||||
return editable;
|
||||
@ -288,7 +288,7 @@ public class TextComponent extends Component implements Accessible {
|
||||
* @param b a flag indicating whether this text component
|
||||
* is user editable.
|
||||
* @see java.awt.TextComponent#isEditable
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public synchronized void setEditable(boolean b) {
|
||||
if (editable == b) {
|
||||
@ -313,7 +313,7 @@ public class TextComponent extends Component implements Accessible {
|
||||
* If this text component does not have a background color,
|
||||
* the background color of its parent is returned.
|
||||
* @see #setBackground(Color)
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public Color getBackground() {
|
||||
if (!editable && !backgroundSetByClientCode) {
|
||||
@ -330,7 +330,7 @@ public class TextComponent extends Component implements Accessible {
|
||||
* If this parameter is null then this text component
|
||||
* will inherit the background color of its parent.
|
||||
* @see #getBackground()
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public void setBackground(Color c) {
|
||||
backgroundSetByClientCode = true;
|
||||
@ -365,7 +365,7 @@ public class TextComponent extends Component implements Accessible {
|
||||
* selected text
|
||||
* @see java.awt.TextComponent#getSelectionStart
|
||||
* @see java.awt.TextComponent#setSelectionEnd
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public synchronized void setSelectionStart(int selectionStart) {
|
||||
/* Route through select method to enforce consistent policy
|
||||
@ -401,7 +401,7 @@ public class TextComponent extends Component implements Accessible {
|
||||
* selected text
|
||||
* @see java.awt.TextComponent#getSelectionEnd
|
||||
* @see java.awt.TextComponent#setSelectionStart
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public synchronized void setSelectionEnd(int selectionEnd) {
|
||||
/* Route through select method to enforce consistent policy
|
||||
@ -494,7 +494,7 @@ public class TextComponent extends Component implements Accessible {
|
||||
* @param position the position of the text insertion caret
|
||||
* @exception IllegalArgumentException if <code>position</code>
|
||||
* is less than zero
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public synchronized void setCaretPosition(int position) {
|
||||
if (position < 0) {
|
||||
@ -523,7 +523,7 @@ public class TextComponent extends Component implements Accessible {
|
||||
*
|
||||
* @return the position of the text insertion caret
|
||||
* @see #setCaretPosition(int)
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public synchronized int getCaretPosition() {
|
||||
TextComponentPeer peer = (TextComponentPeer)this.peer;
|
||||
@ -574,7 +574,7 @@ public class TextComponent extends Component implements Accessible {
|
||||
* @see #addTextListener
|
||||
* @see #getTextListeners
|
||||
* @see java.awt.event.TextListener
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public synchronized void removeTextListener(TextListener l) {
|
||||
if (l == null) {
|
||||
|
@ -92,7 +92,7 @@ import javax.accessibility.*;
|
||||
* @see java.awt.TextField#processEvent
|
||||
* @see java.awt.TextField#processActionEvent
|
||||
* @see java.awt.TextField#addActionListener
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public class TextField extends TextComponent {
|
||||
|
||||
@ -265,7 +265,7 @@ public class TextField extends TextComponent {
|
||||
* @param c the echo character for this text field.
|
||||
* @see java.awt.TextField#echoCharIsSet
|
||||
* @see java.awt.TextField#getEchoChar
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void setEchoChar(char c) {
|
||||
setEchoCharacter(c);
|
||||
@ -321,7 +321,7 @@ public class TextField extends TextComponent {
|
||||
* approximate average character width that is platform-dependent.
|
||||
* @return the number of columns.
|
||||
* @see java.awt.TextField#setColumns
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public int getColumns() {
|
||||
return columns;
|
||||
@ -335,7 +335,7 @@ public class TextField extends TextComponent {
|
||||
* @exception IllegalArgumentException if the value
|
||||
* supplied for <code>columns</code>
|
||||
* is less than <code>0</code>.
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void setColumns(int columns) {
|
||||
int oldVal;
|
||||
@ -361,7 +361,7 @@ public class TextField extends TextComponent {
|
||||
* in this text field.
|
||||
* @return the preferred dimensions for
|
||||
* displaying this text field.
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public Dimension getPreferredSize(int columns) {
|
||||
return preferredSize(columns);
|
||||
@ -385,7 +385,7 @@ public class TextField extends TextComponent {
|
||||
* Gets the preferred size of this text field.
|
||||
* @return the preferred dimensions for
|
||||
* displaying this text field.
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public Dimension getPreferredSize() {
|
||||
return preferredSize();
|
||||
@ -409,7 +409,7 @@ public class TextField extends TextComponent {
|
||||
* the specified number of columns.
|
||||
* @param columns the number of columns in
|
||||
* this text field.
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public Dimension getMinimumSize(int columns) {
|
||||
return minimumSize(columns);
|
||||
@ -433,7 +433,7 @@ public class TextField extends TextComponent {
|
||||
* Gets the minimum dimensions for this text field.
|
||||
* @return the minimum dimensions for
|
||||
* displaying this text field.
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public Dimension getMinimumSize() {
|
||||
return minimumSize();
|
||||
@ -463,7 +463,7 @@ public class TextField extends TextComponent {
|
||||
* @see #removeActionListener
|
||||
* @see #getActionListeners
|
||||
* @see java.awt.event.ActionListener
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public synchronized void addActionListener(ActionListener l) {
|
||||
if (l == null) {
|
||||
@ -484,7 +484,7 @@ public class TextField extends TextComponent {
|
||||
* @see #addActionListener
|
||||
* @see #getActionListeners
|
||||
* @see java.awt.event.ActionListener
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public synchronized void removeActionListener(ActionListener l) {
|
||||
if (l == null) {
|
||||
@ -578,7 +578,7 @@ public class TextField extends TextComponent {
|
||||
* @param e the event
|
||||
* @see java.awt.event.ActionEvent
|
||||
* @see java.awt.TextField#processActionEvent
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
protected void processEvent(AWTEvent e) {
|
||||
if (e instanceof ActionEvent) {
|
||||
@ -609,7 +609,7 @@ public class TextField extends TextComponent {
|
||||
* @see java.awt.event.ActionListener
|
||||
* @see java.awt.TextField#addActionListener
|
||||
* @see java.awt.Component#enableEvents
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
protected void processActionEvent(ActionEvent e) {
|
||||
ActionListener listener = actionListener;
|
||||
|
@ -108,7 +108,7 @@ import sun.util.CoreResourceBundleControl;
|
||||
* @author Sami Shaio
|
||||
* @author Arthur van Hoff
|
||||
* @author Fred Ecks
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public abstract class Toolkit {
|
||||
|
||||
@ -222,7 +222,7 @@ public abstract class Toolkit {
|
||||
* @see java.awt.GraphicsEnvironment#isHeadless
|
||||
* @see java.awt.ScrollPane
|
||||
* @see java.awt.peer.ScrollPanePeer
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
protected abstract ScrollPanePeer createScrollPane(ScrollPane target)
|
||||
throws HeadlessException;
|
||||
@ -355,7 +355,7 @@ public abstract class Toolkit {
|
||||
* @see java.awt.GraphicsEnvironment#isHeadless
|
||||
* @see java.awt.PopupMenu
|
||||
* @see java.awt.peer.PopupMenuPeer
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
protected abstract PopupMenuPeer createPopupMenu(PopupMenu target)
|
||||
throws HeadlessException;
|
||||
@ -457,7 +457,7 @@ public abstract class Toolkit {
|
||||
* @exception HeadlessException if GraphicsEnvironment.isHeadless()
|
||||
* returns true
|
||||
* @see java.awt.GraphicsEnvironment#isHeadless
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
protected void loadSystemColors(int[] systemColors)
|
||||
throws HeadlessException {
|
||||
@ -1105,7 +1105,7 @@ public abstract class Toolkit {
|
||||
* @param imagedata an array of bytes, representing
|
||||
* image data in a supported image format.
|
||||
* @return an image.
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public Image createImage(byte[] imagedata) {
|
||||
return createImage(imagedata, 0, imagedata.length);
|
||||
@ -1122,7 +1122,7 @@ public abstract class Toolkit {
|
||||
* of the data in the array.
|
||||
* @param imagelength the length of the data in the array.
|
||||
* @return an image.
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public abstract Image createImage(byte[] imagedata,
|
||||
int imageoffset,
|
||||
@ -1159,7 +1159,7 @@ public abstract class Toolkit {
|
||||
* @see java.awt.GraphicsEnvironment#isHeadless
|
||||
* @see java.awt.PrintJob
|
||||
* @see java.lang.RuntimePermission
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public abstract PrintJob getPrintJob(Frame frame, String jobtitle,
|
||||
Properties props);
|
||||
@ -1230,7 +1230,7 @@ public abstract class Toolkit {
|
||||
/**
|
||||
* Emits an audio beep depending on native system settings and hardware
|
||||
* capabilities.
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public abstract void beep();
|
||||
|
||||
@ -1273,7 +1273,7 @@ public abstract class Toolkit {
|
||||
* @see java.awt.datatransfer.DataFlavor#plainTextFlavor
|
||||
* @see java.io.Reader
|
||||
* @see java.awt.AWTPermission
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public abstract Clipboard getSystemClipboard()
|
||||
throws HeadlessException;
|
||||
@ -1353,7 +1353,7 @@ public abstract class Toolkit {
|
||||
* @see java.awt.GraphicsEnvironment#isHeadless
|
||||
* @see java.awt.MenuBar
|
||||
* @see java.awt.MenuShortcut
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public int getMenuShortcutKeyMask() throws HeadlessException {
|
||||
GraphicsEnvironment.checkHeadless();
|
||||
|
@ -143,7 +143,7 @@ import sun.util.logging.PlatformLogger;
|
||||
* @see WindowEvent
|
||||
* @see #addWindowListener
|
||||
* @see java.awt.BorderLayout
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public class Window extends Container implements Accessible {
|
||||
|
||||
@ -753,7 +753,7 @@ public class Window extends Container implements Accessible {
|
||||
* not be called directly by programs.
|
||||
* @see Component#isDisplayable
|
||||
* @see Container#removeNotify
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public void addNotify() {
|
||||
synchronized (getTreeLock()) {
|
||||
@ -1405,7 +1405,7 @@ public class Window extends Container implements Accessible {
|
||||
* is returned.
|
||||
* @return the locale that is set for this window.
|
||||
* @see java.util.Locale
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public Locale getLocale() {
|
||||
if (this.locale == null) {
|
||||
@ -1441,7 +1441,7 @@ public class Window extends Container implements Accessible {
|
||||
* Cursor.DEFAULT_CURSOR.
|
||||
* @see Component#getCursor
|
||||
* @see Cursor
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void setCursor(Cursor cursor) {
|
||||
if (cursor == null) {
|
||||
|
@ -59,6 +59,6 @@ For overviews, tutorials, examples, guides, and tool documentation, please see:
|
||||
</ul>
|
||||
-->
|
||||
|
||||
@since JDK1.1
|
||||
@since 1.1
|
||||
</body>
|
||||
</html>
|
||||
|
@ -162,7 +162,7 @@ public abstract class InputEvent extends ComponentEvent {
|
||||
* @see getButtonDownMasks
|
||||
* There are twenty buttons fit into 4byte space.
|
||||
* one more bit is reserved for FIRST_HIGH_BIT.
|
||||
* @since 7.0
|
||||
* @since 1.7
|
||||
*/
|
||||
private static final int [] BUTTON_DOWN_MASK = new int [] { BUTTON1_DOWN_MASK,
|
||||
BUTTON2_DOWN_MASK,
|
||||
@ -187,7 +187,7 @@ public abstract class InputEvent extends ComponentEvent {
|
||||
|
||||
/**
|
||||
* A method to access an array of extended modifiers for additional buttons.
|
||||
* @since 7.0
|
||||
* @since 1.7
|
||||
*/
|
||||
private static int [] getButtonDownMasks(){
|
||||
return Arrays.copyOf(BUTTON_DOWN_MASK, BUTTON_DOWN_MASK.length);
|
||||
@ -237,7 +237,7 @@ public abstract class InputEvent extends ComponentEvent {
|
||||
* @return a mask for an existing mouse button.
|
||||
* @throws IllegalArgumentException if {@code button} is less than zero or greater than the number
|
||||
* of button masks reserved for buttons
|
||||
* @since 7.0
|
||||
* @since 1.7
|
||||
* @see java.awt.MouseInfo#getNumberOfButtons()
|
||||
* @see Toolkit#areExtraMouseButtonsEnabled()
|
||||
* @see MouseEvent#getModifiers()
|
||||
|
@ -54,7 +54,7 @@ import sun.awt.SunToolkit;
|
||||
* @see WindowListener
|
||||
* @see <a href="http://docs.oracle.com/javase/tutorial/uiswing/events/windowlistener.html">Tutorial: Writing a Window Listener</a>
|
||||
*
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public class WindowEvent extends ComponentEvent {
|
||||
|
||||
|
@ -53,6 +53,6 @@ For overviews, tutorials, examples, guides, and tool documentation, please see:
|
||||
</ul>
|
||||
-->
|
||||
|
||||
@since JDK1.1
|
||||
@since 1.1
|
||||
</body>
|
||||
</html>
|
||||
|
@ -121,6 +121,6 @@ documentation, please see:</P>
|
||||
Method Engine SPI Tutorial</A></B>
|
||||
</UL>
|
||||
|
||||
@since JDK1.3
|
||||
@since 1.3
|
||||
</BODY>
|
||||
</HTML>
|
||||
|
@ -53,6 +53,6 @@ For overviews, tutorials, examples, guides, and tool documentation, please see:
|
||||
</ul>
|
||||
-->
|
||||
|
||||
@since JDK1.0
|
||||
@since 1.0
|
||||
</body>
|
||||
</html>
|
||||
|
@ -78,6 +78,6 @@ For overviews, tutorials, examples, guides, and tool documentation, please see:
|
||||
</ul>
|
||||
-->
|
||||
|
||||
@since JDK1.0
|
||||
@since 1.0
|
||||
</body>
|
||||
</html>
|
||||
|
@ -45,7 +45,7 @@ import java.util.concurrent.atomic.AtomicReferenceFieldUpdater;
|
||||
* the contained input stream.
|
||||
*
|
||||
* @author Arthur van Hoff
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public
|
||||
class BufferedInputStream extends FilterInputStream {
|
||||
|
@ -32,7 +32,7 @@ package java.io;
|
||||
* system for each byte written.
|
||||
*
|
||||
* @author Arthur van Hoff
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public
|
||||
class BufferedOutputStream extends FilterOutputStream {
|
||||
|
@ -64,7 +64,7 @@ import java.util.stream.StreamSupport;
|
||||
* @see java.nio.file.Files#newBufferedReader
|
||||
*
|
||||
* @author Mark Reinhold
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
|
||||
public class BufferedReader extends Reader {
|
||||
|
@ -60,7 +60,7 @@ package java.io;
|
||||
* @see java.nio.file.Files#newBufferedWriter
|
||||
*
|
||||
* @author Mark Reinhold
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
|
||||
public class BufferedWriter extends Writer {
|
||||
|
@ -38,7 +38,7 @@ package java.io;
|
||||
*
|
||||
* @author Arthur van Hoff
|
||||
* @see java.io.StringBufferInputStream
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public
|
||||
class ByteArrayInputStream extends InputStream {
|
||||
@ -73,7 +73,7 @@ class ByteArrayInputStream extends InputStream {
|
||||
* If no mark has been set, then the value of mark is the offset
|
||||
* passed to the constructor (or 0 if the offset was not supplied).
|
||||
*
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
protected int mark = 0;
|
||||
|
||||
@ -237,7 +237,7 @@ class ByteArrayInputStream extends InputStream {
|
||||
* <code>markSupported</code> method of <code>ByteArrayInputStream</code>
|
||||
* always returns <code>true</code>.
|
||||
*
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public boolean markSupported() {
|
||||
return true;
|
||||
@ -256,7 +256,7 @@ class ByteArrayInputStream extends InputStream {
|
||||
* <p> Note: The <code>readAheadLimit</code> for this class
|
||||
* has no meaning.
|
||||
*
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public void mark(int readAheadLimit) {
|
||||
mark = pos;
|
||||
|
@ -39,7 +39,7 @@ import java.util.Arrays;
|
||||
* generating an <tt>IOException</tt>.
|
||||
*
|
||||
* @author Arthur van Hoff
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
|
||||
public class ByteArrayOutputStream extends OutputStream {
|
||||
@ -202,7 +202,7 @@ public class ByteArrayOutputStream extends OutputStream {
|
||||
* required.
|
||||
*
|
||||
* @return String decoded from the buffer's contents.
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public synchronized String toString() {
|
||||
return new String(buf, 0, count);
|
||||
@ -224,7 +224,7 @@ public class ByteArrayOutputStream extends OutputStream {
|
||||
* @return String decoded from the buffer's contents.
|
||||
* @exception UnsupportedEncodingException
|
||||
* If the named charset is not supported
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public synchronized String toString(String charsetName)
|
||||
throws UnsupportedEncodingException
|
||||
|
@ -30,7 +30,7 @@ package java.io;
|
||||
* character-input stream.
|
||||
*
|
||||
* @author Herb Jellinek
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public class CharArrayReader extends Reader {
|
||||
/** The character buffer. */
|
||||
|
@ -37,7 +37,7 @@ import java.util.Arrays;
|
||||
* without generating an IOException.
|
||||
*
|
||||
* @author Herb Jellinek
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public
|
||||
class CharArrayWriter extends Writer {
|
||||
|
@ -28,7 +28,7 @@ package java.io;
|
||||
* Base class for character conversion exceptions.
|
||||
*
|
||||
* @author Asmus Freytag
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public class CharConversionException
|
||||
extends java.io.IOException
|
||||
|
@ -143,7 +143,7 @@ package java.io;
|
||||
* @author Frank Yellin
|
||||
* @see java.io.DataInputStream
|
||||
* @see java.io.DataOutput
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public
|
||||
interface DataInput {
|
||||
|
@ -37,7 +37,7 @@ package java.io;
|
||||
*
|
||||
* @author Arthur van Hoff
|
||||
* @see java.io.DataOutputStream
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public
|
||||
class DataInputStream extends FilterInputStream implements DataInput {
|
||||
|
@ -44,7 +44,7 @@ package java.io;
|
||||
* @author Frank Yellin
|
||||
* @see java.io.DataInput
|
||||
* @see java.io.DataOutputStream
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public
|
||||
interface DataOutput {
|
||||
|
@ -32,7 +32,7 @@ package java.io;
|
||||
*
|
||||
* @author unascribed
|
||||
* @see java.io.DataInputStream
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public
|
||||
class DataOutputStream extends FilterOutputStream implements DataOutput {
|
||||
|
@ -36,7 +36,7 @@ package java.io;
|
||||
* @author Frank Yellin
|
||||
* @see java.io.DataInputStream
|
||||
* @see java.io.IOException
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public
|
||||
class EOFException extends IOException {
|
||||
|
@ -61,7 +61,7 @@ import java.io.ObjectInput;
|
||||
* @see java.io.ObjectOutput
|
||||
* @see java.io.ObjectInput
|
||||
* @see java.io.Serializable
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public interface Externalizable extends java.io.Serializable {
|
||||
/**
|
||||
|
@ -143,7 +143,7 @@ import sun.security.action.GetPropertyAction;
|
||||
* diagnose errors when an operation on a file fails.
|
||||
*
|
||||
* @author unascribed
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
|
||||
public class File
|
||||
@ -608,7 +608,7 @@ public class File
|
||||
* java.lang.SecurityManager#checkRead}</code> method denies
|
||||
* read access to the file
|
||||
*
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
* @see Path#toRealPath
|
||||
*/
|
||||
public String getCanonicalPath() throws IOException {
|
||||
|
@ -43,7 +43,7 @@ import sun.nio.ch.FileChannelImpl;
|
||||
* @see java.io.FileDescriptor
|
||||
* @see java.io.FileOutputStream
|
||||
* @see java.nio.file.Files#newInputStream
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public
|
||||
class FileInputStream extends InputStream
|
||||
|
@ -37,7 +37,7 @@ package java.io;
|
||||
* example when an attempt is made to open a read-only file for writing.
|
||||
*
|
||||
* @author unascribed
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
|
||||
public class FileNotFoundException extends IOException {
|
||||
|
@ -47,7 +47,7 @@ import sun.nio.ch.FileChannelImpl;
|
||||
* @see java.io.FileDescriptor
|
||||
* @see java.io.FileInputStream
|
||||
* @see java.nio.file.Files#newOutputStream
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public
|
||||
class FileOutputStream extends OutputStream
|
||||
@ -125,7 +125,7 @@ class FileOutputStream extends OutputStream
|
||||
* <code>checkWrite</code> method denies write access
|
||||
* to the file.
|
||||
* @see java.lang.SecurityManager#checkWrite(java.lang.String)
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public FileOutputStream(String name, boolean append)
|
||||
throws FileNotFoundException
|
||||
|
@ -40,7 +40,7 @@ package java.io;
|
||||
* @see FileInputStream
|
||||
*
|
||||
* @author Mark Reinhold
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public class FileReader extends InputStreamReader {
|
||||
|
||||
|
@ -46,7 +46,7 @@ package java.io;
|
||||
* @see FileOutputStream
|
||||
*
|
||||
* @author Mark Reinhold
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
|
||||
public class FileWriter extends OutputStreamWriter {
|
||||
|
@ -37,7 +37,7 @@ package java.io;
|
||||
* @see java.awt.FileDialog#setFilenameFilter(java.io.FilenameFilter)
|
||||
* @see java.io.File
|
||||
* @see java.io.File#list(java.io.FilenameFilter)
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface FilenameFilter {
|
||||
|
@ -40,7 +40,7 @@ package java.io;
|
||||
* and fields.
|
||||
*
|
||||
* @author Jonathan Payne
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public
|
||||
class FilterInputStream extends InputStream {
|
||||
|
@ -39,7 +39,7 @@ package java.io;
|
||||
* methods as well as provide additional methods and fields.
|
||||
*
|
||||
* @author Jonathan Payne
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public
|
||||
class FilterOutputStream extends OutputStream {
|
||||
|
@ -35,7 +35,7 @@ package java.io;
|
||||
* additional methods and fields.
|
||||
*
|
||||
* @author Mark Reinhold
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
|
||||
public abstract class FilterReader extends Reader {
|
||||
|
@ -35,7 +35,7 @@ package java.io;
|
||||
* provide additional methods and fields.
|
||||
*
|
||||
* @author Mark Reinhold
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
|
||||
public abstract class FilterWriter extends Writer {
|
||||
|
@ -33,7 +33,7 @@ package java.io;
|
||||
* @author unascribed
|
||||
* @see java.io.InputStream
|
||||
* @see java.io.OutputStream
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public
|
||||
class IOException extends Exception {
|
||||
|
@ -40,7 +40,7 @@ package java.io;
|
||||
* @see java.io.InputStream#read()
|
||||
* @see java.io.OutputStream
|
||||
* @see java.io.PushbackInputStream
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public abstract class InputStream implements Closeable {
|
||||
|
||||
|
@ -56,7 +56,7 @@ import sun.nio.cs.StreamDecoder;
|
||||
* @see java.nio.charset.Charset
|
||||
*
|
||||
* @author Mark Reinhold
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
|
||||
public class InputStreamReader extends Reader {
|
||||
|
@ -37,7 +37,7 @@ package java.io;
|
||||
* @see java.io.InputStream
|
||||
* @see java.io.OutputStream
|
||||
* @see java.lang.Thread#interrupt()
|
||||
* @since JDK1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public
|
||||
class InterruptedIOException extends IOException {
|
||||
|
@ -36,7 +36,7 @@ package java.io;
|
||||
* </UL>
|
||||
*
|
||||
* @author unascribed
|
||||
* @since JDK1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
public class InvalidClassException extends ObjectStreamException {
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user