jre
登录
|
jre/8
netscape
org
launcher
javafx
com
sun
webkit
media
glass
org
image
java_cup
security
openpisces
source
imageio
prism
javafx
webkit
media
sg
robot
perf
menu
property
image
charts
UnmodifiableArrayList.java
css
SizeUnits.java
StyleManager.java
FontFace.java
BitSet.java
CascadingStyle.java
StringStore.java
Rule.java
StyleCacheEntry.java
converters
PseudoClassImpl.java
parser
Size.java
Stylesheet.java
Selector.java
CompoundSelector.java
SubCssMetaData.java
Declaration.java
Match.java
StyleMap.java
CssError.java
StyleConverterImpl.java
ParsedValueImpl.java
Style.java
StyleClassSet.java
SelectorPartitioning.java
Combinator.java
PseudoClassState.java
SimpleSelector.java
StyleClass.java
CalculatedValue.java
StyleCache.java
binding
tk
stage
application
util
font
beans
animation
PlatformUtil.java
runtime
text
geometry
embed
iio
effect
collections
scene
logging
fxml
jmx
geom
cursor
event
print
naming
scenario
javadoc
jmx
corba
pisces
java
swing
javax
java
Style.java
清空
类结构
/* * Copyright (c) 2008, 2013, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.javafx.css; /** * A Style is just the selector and declaration from a Rule. */ final public class
Style
{ /** * A selector might have more than one selector. This is the one that was * matched. */ public
Selector
getSelector
() { return
selector
; } /** * The Declaration that is the source of the style that is about * to be applied or has just been applied. May be null if the * value comes from the CSSProperty's initial (default) value. */ public
Declaration
getDeclaration
() { return
declaration
; } public
Style
(
Selector
selector
,
Declaration
declaration
) { this.
selector
=
selector
; this.
declaration
=
declaration
; } @
Override
public boolean
equals
(
Object
obj
) { if (
obj
== this) { return true; } if (
obj
== null) { return false; } if (
getClass
() !=
obj
.
getClass
()) { return false; } final
Style
other
= (
Style
)
obj
; if (this.
selector
!=
other
.
selector
&& (this.
selector
== null || !this.
selector
.
equals
(
other
.
selector
))) { return false; } if (this.
declaration
!=
other
.
declaration
&& (this.
declaration
== null || !this.
declaration
.
equals
(
other
.
declaration
))) { return false; } return true; } @
Override
public int
hashCode
() { int
hash
= 3;
hash
= 83 *
hash
+ (this.
selector
!= null ? this.
selector
.
hashCode
() : 0);
hash
= 83 *
hash
+ (this.
declaration
!= null ? this.
declaration
.
hashCode
() : 0); return
hash
; } @
Override
public
String
toString
() { final
StringBuilder
sb
= new
StringBuilder
() .
append
(
String
.
valueOf
(
selector
)) .
append
(" { ") .
append
(
String
.
valueOf
(
declaration
)) .
append
( " } "); return
sb
.
toString
(); } private final
Selector
selector
; private final
Declaration
declaration
; }
查找资源
Jre/Lib
输入类名或文件名
类结构窗口