|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.browsecode.helpers.MiscMethods
public class MiscMethods
Constructor Summary | |
---|---|
MiscMethods()
|
Method Summary | ||
---|---|---|
static boolean |
areEqual(java.lang.Object objA,
java.lang.Object objB)
Checks whether two objects are equal, including checking for nulls. |
|
static void |
copyTimeOfDayFromTo(java.util.Calendar time,
java.util.Calendar day)
|
|
static void |
copyTimeOfDayFromTo(java.util.Date time,
java.util.Calendar day)
Copies the time from "time" into the passed in calendar, "day". |
|
static int |
getComponentIndex(java.awt.Container container,
java.awt.Component c)
Returns the index of the specified component. |
|
static javax.swing.JTextPane |
getNonEditableHTMLArea(java.lang.String text)
|
|
static javax.swing.JTextArea |
getNonEditableTextArea(java.lang.String text)
|
|
static java.lang.String |
getThNumberEnding(int num)
Pass in "1", "2", or "3" and get "1st", "2nd", "3rd", etc. |
|
static
|
randomizeVector(java.util.Vector<T> vector)
|
|
static boolean |
stringNonBlank(java.lang.String strA)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MiscMethods()
Method Detail |
---|
public static int getComponentIndex(java.awt.Container container, java.awt.Component c)
c
- the Component
to find
public static javax.swing.JTextArea getNonEditableTextArea(java.lang.String text)
public static javax.swing.JTextPane getNonEditableHTMLArea(java.lang.String text)
public static java.lang.String getThNumberEnding(int num)
public static boolean areEqual(java.lang.Object objA, java.lang.Object objB)
public static boolean stringNonBlank(java.lang.String strA)
public static <T> java.util.Vector<T> randomizeVector(java.util.Vector<T> vector)
public static void copyTimeOfDayFromTo(java.util.Date time, java.util.Calendar day)
time
- day
- public static void copyTimeOfDayFromTo(java.util.Calendar time, java.util.Calendar day)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |