Skip navigation links
A C E F G H I L M P R S T V _ 

A

AbstractCommand - Class in hu.webarticum.chm
Commons for commands.
AbstractCommand() - Constructor for class hu.webarticum.chm.AbstractCommand
 
add(Command) - Method in class hu.webarticum.chm.CommandAggregation
Appends the given command to the end of this aggregation.
addAndExecute(Command) - Method in class hu.webarticum.chm.ComplexHistory
 
addAndExecute(Command) - Method in interface hu.webarticum.chm.History
Appends the given command after the last executed one and execute it.
addAndExecute(Command) - Method in class hu.webarticum.chm.LinearHistory
 
addAndExecute(Command) - Method in class hu.webarticum.chm.SingleCommandHistory
 
addAndExecute(Command) - Method in class hu.webarticum.chm.SynchronizedHistoryWrapper
 
addListener(History.Listener) - Method in class hu.webarticum.chm.ComplexHistory
 
addListener(History.Listener) - Method in interface hu.webarticum.chm.History
Appends a new listener to this history.
addListener(History.Listener) - Method in class hu.webarticum.chm.LinearHistory
 
addListener(History.Listener) - Method in class hu.webarticum.chm.SingleCommandHistory
 
addListener(History.Listener) - Method in class hu.webarticum.chm.SynchronizedHistoryWrapper
 

C

changed(History, History.Listener.OperationType) - Method in interface hu.webarticum.chm.History.Listener
Called when a change occurred in the history.
close() - Method in class hu.webarticum.chm.CommandAggregation
Closes this aggregation.
Command - Interface in hu.webarticum.chm
Undoable operation.
CommandAggregation - Class in hu.webarticum.chm
Aggregation to execute and roll back multiple commands together.
CommandAggregation() - Constructor for class hu.webarticum.chm.CommandAggregation
 
ComplexHistory - Class in hu.webarticum.chm
Advanced history implementation.
ComplexHistory() - Constructor for class hu.webarticum.chm.ComplexHistory
 
ComplexHistory(int) - Constructor for class hu.webarticum.chm.ComplexHistory
 
ComplexHistory(int, boolean) - Constructor for class hu.webarticum.chm.ComplexHistory
 
ComplexHistory.CommandNode - Class in hu.webarticum.chm
Represents a node in the history tree
contains(Command) - Method in class hu.webarticum.chm.ComplexHistory
 
contains(Command) - Method in interface hu.webarticum.chm.History
Returns true if this list contains the specified element.
contains(Command) - Method in class hu.webarticum.chm.LinearHistory
 
contains(Command) - Method in class hu.webarticum.chm.SingleCommandHistory
 
contains(Command) - Method in class hu.webarticum.chm.SynchronizedHistoryWrapper
 

E

execute() - Method in class hu.webarticum.chm.AbstractCommand
 
execute() - Method in interface hu.webarticum.chm.Command
Executes this command
executeNext() - Method in class hu.webarticum.chm.ComplexHistory
 
executeNext() - Method in interface hu.webarticum.chm.History
Executes the next (most recently rolled back) command.
executeNext() - Method in class hu.webarticum.chm.LinearHistory
 
executeNext() - Method in class hu.webarticum.chm.SingleCommandHistory
 
executeNext() - Method in class hu.webarticum.chm.SynchronizedHistoryWrapper
 

F

forceStatus(String, int) - Method in class hu.webarticum.chm.SampleDocument
Forces inner status of the document
forceStatus(List<Character>, int) - Method in class hu.webarticum.chm.SampleDocument
Forces inner status of the document Can be used for demonstrating Command.setExecuted().

G

gc() - Method in class hu.webarticum.chm.ComplexHistory
Runs a clean on this history.
getCharacters() - Method in class hu.webarticum.chm.SampleDocument
Gets the characters of this document (the content).
getChildren() - Method in class hu.webarticum.chm.ComplexHistory.CommandNode
Gets list of commands directly based on this node.
getCommand() - Method in class hu.webarticum.chm.ComplexHistory.CommandNode
Gets command of this node.
getCommand() - Method in class hu.webarticum.chm.PathEntry
 
getHistory() - Method in class hu.webarticum.chm.SampleDocument
Gets the history manager of this document.
getNext() - Method in class hu.webarticum.chm.ComplexHistory
 
getNext() - Method in interface hu.webarticum.chm.History
Returns the next (most recently rolled back) command.
getNext() - Method in class hu.webarticum.chm.LinearHistory
 
getNext() - Method in class hu.webarticum.chm.SingleCommandHistory
 
getNext() - Method in class hu.webarticum.chm.SynchronizedHistoryWrapper
 
getParent() - Method in class hu.webarticum.chm.ComplexHistory.CommandNode
Gets node this node is based on that.
getPosition() - Method in class hu.webarticum.chm.SampleDocument
Gets current position of internal pointer.
getPrevious() - Method in class hu.webarticum.chm.ComplexHistory
 
getPrevious() - Method in interface hu.webarticum.chm.History
Returns the previous (most recently executed) command.
getPrevious() - Method in class hu.webarticum.chm.LinearHistory
 
getPrevious() - Method in class hu.webarticum.chm.SingleCommandHistory
 
getPrevious() - Method in class hu.webarticum.chm.SynchronizedHistoryWrapper
 
getPreviousCommandNode() - Method in class hu.webarticum.chm.ComplexHistory
Returns node of the most recently executed command.
getRootCommandNode() - Method in class hu.webarticum.chm.ComplexHistory
Returns the absolute root node of this history.
getSelectedNextCommand() - Method in class hu.webarticum.chm.ComplexHistory.CommandNode
Gets the last executed command directly based on this node.
getTime() - Method in class hu.webarticum.chm.AbstractCommand
 
getTime() - Method in interface hu.webarticum.chm.Command
Returns time when this command was first executed.

H

hasNext() - Method in class hu.webarticum.chm.ComplexHistory
 
hasNext() - Method in interface hu.webarticum.chm.History
Returns true if there is a next (most recently rolled back) command.
hasNext() - Method in class hu.webarticum.chm.LinearHistory
 
hasNext() - Method in class hu.webarticum.chm.SingleCommandHistory
 
hasNext() - Method in class hu.webarticum.chm.SynchronizedHistoryWrapper
 
hasPrevious() - Method in class hu.webarticum.chm.ComplexHistory
 
hasPrevious() - Method in interface hu.webarticum.chm.History
Returns true if there is a previous (most recently executed) command.
hasPrevious() - Method in class hu.webarticum.chm.LinearHistory
 
hasPrevious() - Method in class hu.webarticum.chm.SingleCommandHistory
 
hasPrevious() - Method in class hu.webarticum.chm.SynchronizedHistoryWrapper
 
History - Interface in hu.webarticum.chm
Stores a history of commands based on each other.
History.Listener - Interface in hu.webarticum.chm
Listens to history changes.
History.Listener.OperationType - Enum in hu.webarticum.chm
Type of operation which occurred on the command history
hu.webarticum.chm - package hu.webarticum.chm
This package represents a command history manager This library is not thread safe.

I

isEmpty() - Method in class hu.webarticum.chm.ComplexHistory
 
isEmpty() - Method in interface hu.webarticum.chm.History
Returns true if this history contains no commands.
isEmpty() - Method in class hu.webarticum.chm.LinearHistory
 
isEmpty() - Method in class hu.webarticum.chm.SingleCommandHistory
 
isEmpty() - Method in class hu.webarticum.chm.SynchronizedHistoryWrapper
 
isExecuted() - Method in class hu.webarticum.chm.AbstractCommand
 
isExecuted() - Method in interface hu.webarticum.chm.Command
Returns true if command have been already executed and is not rolled back.
isToRollBack() - Method in class hu.webarticum.chm.PathEntry
 
iterator() - Method in class hu.webarticum.chm.ComplexHistory
 
iterator() - Method in interface hu.webarticum.chm.History
Returns an iterator which iterates through the last executed path's commands.
iterator() - Method in class hu.webarticum.chm.LinearHistory
 
iterator() - Method in class hu.webarticum.chm.SingleCommandHistory
 
iterator() - Method in class hu.webarticum.chm.SynchronizedHistoryWrapper
Returns an iterator which iterates through the last executed path's commands.

L

LinearHistory - Class in hu.webarticum.chm
Traditional linear history implementation.
LinearHistory() - Constructor for class hu.webarticum.chm.LinearHistory
 
LinearHistory(int) - Constructor for class hu.webarticum.chm.LinearHistory
 

M

moveAfter(Command) - Method in class hu.webarticum.chm.ComplexHistory
 
moveAfter(Command) - Method in interface hu.webarticum.chm.History
Moves the internal pointer after the given command.
moveAfter(Command) - Method in class hu.webarticum.chm.LinearHistory
 
moveAfter(Command) - Method in class hu.webarticum.chm.SingleCommandHistory
 
moveAfter(Command) - Method in class hu.webarticum.chm.SynchronizedHistoryWrapper
 
moveBefore(Command) - Method in class hu.webarticum.chm.ComplexHistory
 
moveBefore(Command) - Method in interface hu.webarticum.chm.History
Moves the internal pointer before the given command.
moveBefore(Command) - Method in class hu.webarticum.chm.LinearHistory
 
moveBefore(Command) - Method in class hu.webarticum.chm.SingleCommandHistory
 
moveBefore(Command) - Method in class hu.webarticum.chm.SynchronizedHistoryWrapper
 
moveTo(int) - Method in class hu.webarticum.chm.SampleDocument
Moves internal pointer to the given position.
moveToEnd() - Method in class hu.webarticum.chm.SampleDocument
Moves internal pointer to end (length of document).
moveToStart() - Method in class hu.webarticum.chm.SampleDocument
Moves internal pointer to begin (zero).

P

PathEntry - Class in hu.webarticum.chm
 
PathEntry(Command, boolean) - Constructor for class hu.webarticum.chm.PathEntry
 
printChar(char) - Method in class hu.webarticum.chm.SampleDocument
Inserts a character at position of internal pointer.
printChars(char...) - Method in class hu.webarticum.chm.SampleDocument
Inserts multiple characters at position of internal pointer.

R

removeChar() - Method in class hu.webarticum.chm.SampleDocument
Removes character before the current position of internal pointer.
removeListener(History.Listener) - Method in class hu.webarticum.chm.ComplexHistory
 
removeListener(History.Listener) - Method in interface hu.webarticum.chm.History
Removes a listener from this history.
removeListener(History.Listener) - Method in class hu.webarticum.chm.LinearHistory
 
removeListener(History.Listener) - Method in class hu.webarticum.chm.SingleCommandHistory
 
removeListener(History.Listener) - Method in class hu.webarticum.chm.SynchronizedHistoryWrapper
 
rollBack() - Method in class hu.webarticum.chm.AbstractCommand
 
rollBack() - Method in interface hu.webarticum.chm.Command
Rolls back this command
rollBackPrevious() - Method in class hu.webarticum.chm.ComplexHistory
 
rollBackPrevious() - Method in interface hu.webarticum.chm.History
Rolls back the previous (most recently executed) command.
rollBackPrevious() - Method in class hu.webarticum.chm.LinearHistory
 
rollBackPrevious() - Method in class hu.webarticum.chm.SingleCommandHistory
 
rollBackPrevious() - Method in class hu.webarticum.chm.SynchronizedHistoryWrapper
 

S

SampleDocument - Class in hu.webarticum.chm
Demo document for demonstrating history management.
SampleDocument(History) - Constructor for class hu.webarticum.chm.SampleDocument
 
setCapacity(int) - Method in class hu.webarticum.chm.ComplexHistory
Changes the capacity of this history.
setCapacity(int, boolean) - Method in class hu.webarticum.chm.ComplexHistory
Changes the capacity of this history.
setCapacity(int) - Method in class hu.webarticum.chm.LinearHistory
Changes the capacity of this history.
setExecuted(boolean) - Method in class hu.webarticum.chm.AbstractCommand
 
setExecuted(boolean) - Method in interface hu.webarticum.chm.Command
Explicitly sets executed status, do not perform any execution or roll-backing.
setExecuted(boolean) - Method in class hu.webarticum.chm.CommandAggregation
 
setGcOnInsert(boolean) - Method in class hu.webarticum.chm.ComplexHistory
Changes the value of gcOnInsert.
SingleCommandHistory - Class in hu.webarticum.chm
The most simple history implementation which can store only a single command.
SingleCommandHistory() - Constructor for class hu.webarticum.chm.SingleCommandHistory
 
SynchronizedHistoryWrapper - Class in hu.webarticum.chm
Synchronized wrapper for concurrently used history managers.
SynchronizedHistoryWrapper(History) - Constructor for class hu.webarticum.chm.SynchronizedHistoryWrapper
 

T

toString() - Method in class hu.webarticum.chm.SampleDocument
 

V

valueOf(String) - Static method in enum hu.webarticum.chm.History.Listener.OperationType
Returns the enum constant of this type with the specified name.
values() - Static method in enum hu.webarticum.chm.History.Listener.OperationType
Returns an array containing the constants of this enum type, in the order they are declared.

_

_execute() - Method in class hu.webarticum.chm.AbstractCommand
 
_execute() - Method in class hu.webarticum.chm.CommandAggregation
 
_rollBack() - Method in class hu.webarticum.chm.AbstractCommand
 
_rollBack() - Method in class hu.webarticum.chm.CommandAggregation
 
A C E F G H I L M P R S T V _ 
Skip navigation links