LPEX
4.4.0

com.ibm.lpex.alef.contentassist
Class ContextInformation

java.lang.Object
  extended by com.ibm.lpex.alef.contentassist.ContextInformation
All Implemented Interfaces:
IContextInformation

public final class ContextInformation
extends Object
implements IContextInformation

A default implementation of the IContextInformation interface for LPEX.


Constructor Summary
ContextInformation(Image image, String contextDisplayString, String informationDisplayString)
          Creates a new context information with an image.
ContextInformation(String contextDisplayString, String informationDisplayString)
          Creates a new context information without an image.
 
Method Summary
 boolean equals(Object object)
           
 String getContextDisplayString()
           
 Image getImage()
           
 String getInformationDisplayString()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextInformation

public ContextInformation(String contextDisplayString,
                          String informationDisplayString)
Creates a new context information without an image.

Parameters:
contextDisplayString - the string to be used when presenting the context
informationDisplayString - the string to be displayed when presenting the context information

ContextInformation

public ContextInformation(Image image,
                          String contextDisplayString,
                          String informationDisplayString)
Creates a new context information with an image.

Parameters:
image - the image to display when presenting the context information
contextDisplayString - the string to be used when presenting the context
informationDisplayString - the string to be displayed when presenting the context information, may not be null
Method Detail

equals

public boolean equals(Object object)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getInformationDisplayString

public String getInformationDisplayString()

getImage

public Image getImage()

getContextDisplayString

public String getContextDisplayString()

LPEX
4.4.0

Copyright � 2016 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.