Kafenio.editor 0.8.5

de.xeinfach.kafenio.util
Class ListLoader

java.lang.Object
  extended byde.xeinfach.kafenio.util.ListLoader

public final class ListLoader
extends java.lang.Object

This is a static utility class used to load a list of images or links or whatever from the server. Used in Kafenio Applet for Image-from-Server and HyperLink insertion

The Servlet or CGI script should return a list of lines:

Configuration parameter SERVLETMODE controls how this class reads the lines:

Loaded info is parsed into the two lists:

The class handles exceptions gracefully, returning empty lists.

Author:
Howard Kistler, Maxym Mykhalchuk

Field Summary
static java.lang.String NAME_URL_SEPARATOR
           
 
Method Summary
static void loadImages(KafenioPanelConfiguration config, java.util.List names, java.util.List urls)
          Loads the lists of images
static void loadLinks(KafenioPanelConfiguration config, java.util.List names, java.util.List urls)
          Loads the lists of predefined links
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME_URL_SEPARATOR

public static final java.lang.String NAME_URL_SEPARATOR
See Also:
Constant Field Values
Method Detail

loadImages

public static void loadImages(KafenioPanelConfiguration config,
                              java.util.List names,
                              java.util.List urls)
Loads the lists of images

Parameters:
config - Kafenio configuration
names - The returned list of image names
urls - The returned list of image Urls

loadLinks

public static void loadLinks(KafenioPanelConfiguration config,
                             java.util.List names,
                             java.util.List urls)
Loads the lists of predefined links

Parameters:
config - Kafenio configuration
names - The returned list of image names
urls - The returned list of image Urls

Kafenio.editor 0.8.5

Copyright © 2003-2004 by Karsten Pawlik. All Rights Reserved. Published under the Lesser General Public License (LGPL)