📄 stateimplementation.java
字号:
/*
Copyright 2006 Christian Gross http://www.devspace.com
From the book Ajax Patterns and Best Practices
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package devspace.ajax.statenavigation;
public class StateImplementation implements State {
private String _buffer;
private String _stateIdentifier;
private String _parentStateIdentifier;
private String _url;
private String _windowName;
public StateImplementation() {
_buffer = "<state></state>";
}
public StateImplementation( String hashcode) {
this( hashcode, "<state></state>");
}
public StateImplementation( String hashCode, String buffer) {
_buffer = buffer;
_stateIdentifier = hashCode;
}
public StateImplementation( State state) {
_buffer = state.getBuffer();
_stateIdentifier = state.getStateIdentifier();
}
public String getBuffer() {
return _buffer;
}
public void setBuffer(String buffer) {
_buffer = buffer;
}
public String getStateIdentifier() {
return _stateIdentifier;
}
public void setStateIdentifier(String stateIdentifier) {
_stateIdentifier = stateIdentifier;
}
public String getParentStateIdentifier() {
return _parentStateIdentifier;
}
public void setParentStateIdentifier(String parentStateIdentifier) {
_parentStateIdentifier = parentStateIdentifier;
}
public String getURL() {
return _url;
}
public void setURL( String url) {
_url = url;
}
public String getWindowName() {
return _windowName;
}
public void setWindowName( String windowname) {
_windowName = windowname;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -